<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div>I figure it out.. In the file pqFileChooserWidget.cxx on line 99, the code is:</div><div><br></div><div><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo"><span style="color: #b933a1">this</span>-&gt;LineEdit-&gt;setText(QFileInfo(files[<span style="color: #2038d6">0</span>]).path());</p></div><div><br></div><div>To return the correct path, this would have to be:</div><div><br></div><div><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo"><span style="color: #b933a1">this</span>-&gt;LineEdit-&gt;setText(QFileInfo(files[<span style="color: #2038d6">0</span>]).filePath());</p></div><div><br></div><div>I have made a copy of the widget and made this modification and it works correctly. &nbsp;Might someone make the change (baring any problems with this unbeknownst to me) in the master code so that it might work as expected?</div><div><br></div><div>Thanks,</div><div><br></div><div>Josh</div><div><br></div><span id="OLK_SRC_BODY_SECTION"><div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><span style="font-weight:bold">From: </span> Joshua Murphy &lt;<a href="mailto:Joshua.Murphy@lasp.colorado.edu">Joshua.Murphy@lasp.colorado.edu</a>&gt;<br><span style="font-weight:bold">Date: </span> Tuesday, July 2, 2013 1:00 PM<br><span style="font-weight:bold">To: </span> "<a href="mailto:paraview-developers@paraview.org">paraview-developers@paraview.org</a>" &lt;<a href="mailto:paraview-developers@paraview.org">paraview-developers@paraview.org</a>&gt;<br><span style="font-weight:bold">Subject: </span> [Paraview-developers] pqFileChooserWidget questions<br></div><div><br></div><div><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div>Hello,</div><div><br></div><div>I am attempting to use pqFileChooserWidget to select a path for storing temp files in my properties panel, and I am having trouble.</div><div><br></div><div>I am using it as follows:</div><div><br></div><ol><li>create a custom property panel widget using a pqFileChooserWidget as the ui.</li><li>Set &nbsp;setUseDirectoryMode(true)</li></ol><div><br></div><div>When selecting a path, the following odd behavior occurs:</div><div><br></div><div>1) &nbsp;Select the path the I want</div><div>2) click OK</div><div>3) in the dialog, the path ONE STEP BELOW the selected path is displayed.</div><div><br></div><div>For example: if I select /tmp, the ui will show that / is selected. &nbsp; If I select /tmp/sc01a, the ui shows /tmp as selected.</div><div><br></div><div>Could someone provide some information on why this may be occurring?</div><div><br></div><div>Thanks,</div><div>Josh</div><div><br></div><div><div><div><div><img src="cid:BB706452-208C-4917-BA07-003A50DBD144" type="image/png"></div></div><div>Joshua J. Murphy</div><div>Computer Scientist</div><div>Laboratory for Atmospheric and Space Physics</div><div>University of Colorado, Boulder</div><div><br></div></div></div></div></div></span></body></html>