[Qt4-preview-feedback] QFileDialog::getSaveFileName return wrong path on OSX

Julien Bachmann julien.bachmann at mnemis.com
Wed Mar 11 16:13:37 CET 2009


Hi,

in fact returned path is correct now in the Qt4.5.0. But there is  
still the bug of default file name that is 'untitled' instead of  
'NewFile.txt' in the previous sample program (see attached file)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture 1.png
Type: image/png
Size: 19995 bytes
Desc: not available
Url : http://lists.qt.nokia.com/pipermail/qt4-feedback/attachments/20090311/9c4630b9/attachment.png 
-------------- next part --------------



Regards,

Julien

On Mar 11, 2009, at 3:36 PM, Richard wrote:

> Are you sure? I tested the example below just now (on OS 10.5), both
> carbon and cocoa version. It works just fine here...
> Do you get the exact same results as last time?
>
> -Richard
>
> --------------------------
>
> #include <QtGui>
>
> int main(int argc, char *argv[])
> {
>     QApplication app(argc, argv);
>     const QString defaultSaveFile = QDir::homePath () + "/ 
> NewFile.txt";
>     qDebug() << defaultSaveFile;
>     QString result = QFileDialog::getSaveFileName ( NULL, "Test save
> dialog", defaultSaveFile,"Text file (*.txt)");
>
>     qDebug() << result;
> }
>
>
> Den Mar 11, 2009 kl. 3:23 PM skrev Julien Bachmann:
>
>> Hi,
>>
>> it seems problem was fixed in snapshot of 24 of February but it
>> reappeared on the QT 4.5.0 release.
>>
>> Thanks,
>>
>> Regards,
>>
>> Julien
>>
>> On Feb 23, 2009, at 2:55 PM, Richard wrote:
>>
>>> Hi! Thanks for the feedback (and sorry for the late reply)
>>>
>>> This issue is fixed for Qt-4.5.0.
>>>
>>> -Richard
>>>
>>>
>>>
>>>
>>> Den Feb 17, 2009 kl. 9:34 AM skrev Christoph Mockenhaupt:
>>>
>>>> Hi,
>>>>
>>>>> The problem is only on Mac OSX (10.5). It works well under Windows
>>>>> XP.
>>>>
>>>> I can confirm that this problem also exists on 10.4 in RC1. I
>>>> noticed this
>>>> problem in the snapshots prior to RC1, too.
>>>>
>>>> --
>>>> Christoph
>>>> _______________________________________________
>>>> Qt4-preview-feedback mailing list
>>>> Qt4-preview-feedback at trolltech.com
>>>> http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback
>>>
>>> _______________________________________________
>>> Qt4-preview-feedback mailing list
>>> Qt4-preview-feedback at trolltech.com
>>> http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback
>>
>> _______________________________________________
>> Qt4-preview-feedback mailing list
>> Qt4-preview-feedback at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback
>
> _______________________________________________
> Qt4-preview-feedback mailing list
> Qt4-preview-feedback at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback



More information about the Qt4-feedback mailing list