Dear Gunner,
I work by python not C++ and it dosen't have "QFileDialog.Filter" .
When I use "getOpenFileName" :
QString QFileDialog::getOpenFileName ( const QString & startWith =
QString::null, const QString & filter = QString::null, QWidget * parent = 0,
const char * name = 0, const QString & caption = QString::null,
QString * selectedFilter = 0, bool resolveSymlinks = TRUE ) [static]
I couldn't left secound argument (filter) empty, if I put "null" it
considers that as "All File (*.*)" and if I put a filter there it will show
that filter while I don't want to show that filter name , I just want to
show "All Supported File".
Is there any way that I can do something such as:
For example:
QString all Supported File = "*.jpg *.png *.gif"
QFileDialog.getOpenFileName("c:\", all Suppoted File, this )
And QfileDialog shows exactly "all supported file" in "Files of type" and
also filters that files?
On Thu, Jun 5, 2008 at 12:54 PM, Gunnar Sletta <[EMAIL PROTECTED]> wrote:
> Sahar Payandeh wrote:
>
>> Dear Gunnar,
>>
>> Thanks for your help.I tesetd this code but unfortunately it does not
>> work.
>> I don't undrestand what is "find media files" here.
>> Would you please explain more?
>> I also need find some code example related to this on the net?
>> Do you have any suggestion?
>>
>
> The function is documented here:
>
> http://doc.trolltech.com/qtjambi-4.3.5_01/com/trolltech/qt/gui/QFileDialog.html#getOpenFileName(com.trolltech.qt.gui.QWidget,%20java.lang.String,%20java.lang.String,%20com.trolltech.qt.gui.QFileDialog.Filter,%20com.trolltech.qt.gui.QFileDialog.Option..
> .)
>
> The "find media files" is the "caption" argument, which is becomes the
> window title of the dialog.
>
> As for the example not working, I don't see why it shouldn't. Could you
> please be a bit more spesific on how it doesn't work?
>
> best regards,
> Gunnar
>
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest