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

Richard richardmg at trolltech.com
Wed Mar 11 15:36:04 CET 2009


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




More information about the Qt4-feedback mailing list