[Paraview-developers] pqFileChooserWidget questions

Joshua Murphy Joshua.Murphy at lasp.colorado.edu
Tue Jul 2 15:17:36 EDT 2013


I figure it out.. In the file pqFileChooserWidget.cxx on line 99, the code is:


this->LineEdit->setText(QFileInfo(files[0]).path());

To return the correct path, this would have to be:


this->LineEdit->setText(QFileInfo(files[0]).filePath());

I have made a copy of the widget and made this modification and it works correctly.  Might someone make the change (baring any problems with this unbeknownst to me) in the master code so that it might work as expected?

Thanks,

Josh

From: Joshua Murphy <Joshua.Murphy at lasp.colorado.edu<mailto:Joshua.Murphy at lasp.colorado.edu>>
Date: Tuesday, July 2, 2013 1:00 PM
To: "paraview-developers at paraview.org<mailto:paraview-developers at paraview.org>" <paraview-developers at paraview.org<mailto:paraview-developers at paraview.org>>
Subject: [Paraview-developers] pqFileChooserWidget questions

Hello,

I am attempting to use pqFileChooserWidget to select a path for storing temp files in my properties panel, and I am having trouble.

I am using it as follows:


 1.  create a custom property panel widget using a pqFileChooserWidget as the ui.
 2.  Set  setUseDirectoryMode(true)

When selecting a path, the following odd behavior occurs:

1)  Select the path the I want
2) click OK
3) in the dialog, the path ONE STEP BELOW the selected path is displayed.

For example: if I select /tmp, the ui will show that / is selected.   If I select /tmp/sc01a, the ui shows /tmp as selected.

Could someone provide some information on why this may be occurring?

Thanks,
Josh

[cid:BB706452-208C-4917-BA07-003A50DBD144]
Joshua J. Murphy
Computer Scientist
Laboratory for Atmospheric and Space Physics
University of Colorado, Boulder

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20130702/a754a370/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: A93D829A-3C2C-4769-925A-35900ECAAE2C.png
Type: image/png
Size: 16467 bytes
Desc: A93D829A-3C2C-4769-925A-35900ECAAE2C.png
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20130702/a754a370/attachment-0001.png>


More information about the Paraview-developers mailing list