[Paraview-developers] pqFileChooserWidget questions

Robert Maynard robert.maynard at kitware.com
Wed Jul 3 13:23:27 EDT 2013


I have proposed a fix for this problem, and you can track the status by
watching the bug: http://vtk.org/Bug/view.php?id=14162



On Tue, Jul 2, 2013 at 4:45 PM, Joshua Murphy <
Joshua.Murphy at lasp.colorado.edu> wrote:

> It works fine if I input the /tmp/ by hand.  But if I use the file picker,
> it does not work.
>
> -Josh
>
> From: Robert Maynard <robert.maynard at kitware.com>
> Date: Tuesday, July 2, 2013 2:43 PM
> To: Joshua Murphy <Joshua.Murphy at lasp.colorado.edu>
> Cc: "paraview-developers at paraview.org" <paraview-developers at paraview.org>
> Subject: Re: [Paraview-developers] pqFileChooserWidget questions
>
> Does it fail if you pass /tmp/? If you are in directory mode /tmp would
> need to first verify that tmp is a folder and not a file.
>
>
> On Tue, Jul 2, 2013 at 3:17 PM, Joshua Murphy <
> Joshua.Murphy at lasp.colorado.edu> wrote:
>
>> 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>
>> Date: Tuesday, July 2, 2013 1:00 PM
>> To: "paraview-developers at paraview.org" <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
>>
>> Joshua J. Murphy
>> Computer Scientist
>> Laboratory for Atmospheric and Space Physics
>> University of Colorado, Boulder
>>
>>
>> _______________________________________________
>> Paraview-developers mailing list
>> Paraview-developers at paraview.org
>> http://public.kitware.com/mailman/listinfo/paraview-developers
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20130703/9ee85347/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 16467 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20130703/9ee85347/attachment-0001.png>


More information about the Paraview-developers mailing list