Qt-interest Archive, January 2008
Re: 4.3.3: QFileDialog::getOpenFileName() crashes when passing a hidden directory
Message 1 in thread
On Wed, January 9, 2008 14:24, Benjamin Meyer wrote:
> The crash has been fixed for 4.3.4. Thanks for letting us know.
Hi Benjamin,
thanks for the info!
BTW, with Qt 4 it doesn't seem to be possible to programmatically enable the
display of hidden files or directories for a QFileDialog (correct me if I'm
wrong). Qt 3 had the method "void QFileDialog::setShowHiddenFiles(bool)":
http://doc.trolltech.com/3.3/qfiledialog.html#setShowHiddenFiles
I couldn't find any equivalent function in Qt 4.3. Why is it gone for Qt 4?
Or how can this be done with Qt 4?
Thanks in advance for any hints, René
--
[ signature omitted ]
Message 2 in thread
On Friday 11 January 2008 15:11:05 R. Reucher wrote:
> On Wed, January 9, 2008 14:24, Benjamin Meyer wrote:
> > The crash has been fixed for 4.3.4. Thanks for letting us know.
>
> Hi Benjamin,
>
> thanks for the info!
>
> BTW, with Qt 4 it doesn't seem to be possible to programmatically enable
> the display of hidden files or directories for a QFileDialog (correct me if
> I'm wrong). Qt 3 had the method "void
> QFileDialog::setShowHiddenFiles(bool)":
>
> http://doc.trolltech.com/3.3/qfiledialog.html#setShowHiddenFiles
>
> I couldn't find any equivalent function in Qt 4.3. Why is it gone for Qt 4?
> Or how can this be done with Qt 4?
>
> Thanks in advance for any hints, René
That is correct, when the file dialog was made in 4.0 that function wasn't
re-added. I have added in 4.4 the function setFilter() which can be used to
turn on/off hidden files.
http://doc.trolltech.com/main-snapshot/qfiledialog.html#setFilter
There is another task to add a flag that would work for the static functions
too (native dialogs), but that wont be done for 4.4.
-Benjamin Meyer
--
[ signature omitted ]
Message 3 in thread
On Fri, January 11, 2008 15:18, Benjamin Meyer wrote:
> On Friday 11 January 2008 15:11:05 R. Reucher wrote:
>> BTW, with Qt 4 it doesn't seem to be possible to programmatically enable
>> the display of hidden files or directories for a QFileDialog (correct me
>> if I'm wrong). Qt 3 had the method "void
>> QFileDialog::setShowHiddenFiles(bool)":
>>
>> http://doc.trolltech.com/3.3/qfiledialog.html#setShowHiddenFiles
>>
>> I couldn't find any equivalent function in Qt 4.3. Why is it gone for Qt
>> 4? Or how can this be done with Qt 4?
> That is correct, when the file dialog was made in 4.0 that function wasn't
> re-added. I have added in 4.4 the function setFilter() which can be used to
> turn on/off hidden files.
>
> http://doc.trolltech.com/main-snapshot/qfiledialog.html#setFilter
>
> There is another task to add a flag that would work for the static
> functions too (native dialogs), but that wont be done for 4.4.
Okay, I see. Thanks a lot for the rapid response!
Have fun, René
--
[ signature omitted ]