[Qt-interest] QFileDialog::getOpenFileName Directory name

yogesh upreti yogesh.upreti at gmail.com
Tue Jun 8 08:40:53 CEST 2010


 Hallo Alex,
No there is no specific reason to make the instance of the class, but this
code is also ignoring the directory if I use QString var and works if I
specify dir explicitly. :(
I saw this bug, but I am using Windows Vista and XP for my code
http://bugreports.qt.nokia.com/browse/QTBUG-10573?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aworklog-tabpanel



> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 7 Jun 2010 19:00:44 -0700
> From: "Malyushytsky, Alex" <alex at wai.com>
> Subject: Re: [Qt-interest] QFileDialog::getOpenFileName Directory name
>        setting
> To: "qt-interest at trolltech.com" <qt-interest at trolltech.com>
> Message-ID: <F8145CF983B4DB42855E9BB7F5BE8FCC4755DEBB at camail2>
> Content-Type: text/plain; charset="utf-8"
>
> First of all I would advice to decide do you want to use static function or
> QFileDialog instance. There is no reason to mix them, so revise your code
> appropriately.
>
> In case of static replace your code with:
>
> QString str = "F:/Work/FILES";
> QString  dynFile = QFileDiag::getOpenFileName(this,"Select..", str ,"File
> (*.D)");
>
> Regards,
>  Alex
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100608/f36a85ed/attachment.html 


More information about the Qt-interest-old mailing list