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?
Thanks in advance,
On Thu, Jun 5, 2008 at 9:42 AM, Gunnar Sletta <[EMAIL PROTECTED]> wrote:
> Sahar Payandeh wrote:
>
>> Dear Eskil,
>>
>> Thanks for your help, but using "setNameFilter" wouldn't help me. I think
>> I
>> can't explain my problem clearly.
>>
>> I want to in "Files of type" in "getOpenFileName "add "All supported
>> opetions(All file)", I mean I don't want to show the user what the
>> supported
>> file are. While user select " All supported opetins(All file)" s/he can
>> select all supported file.
>>
>> For example in Windoes Media player, Open file, in Files of type, there is
>> a
>> option "Media file(All types)" by selecting that, user can see and select
>> all media file.
>>
>
> Hi Sahar,
>
> The file dialog will filter the types based on the input pattern in the
> name filter so if you want to support "all media types" you need to do
> something along these lines:
>
> import com.trolltech.qt.gui.*;
>
> public class FileDialogFilter {
> public static void main(String args[]) {
> QApplication.initialize(args);
> QFileDialog.Filter filter = new QFileDialog.Filter("Media
> Files(*.avi *.mpeg *.mkv *.mp3 *.m4a)");
> QFileDialog.getOpenFileName(null, "Find media files", "c:/",
> filter);
> }
> }
>
> best regards,
> Gunnar
>
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest