[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: KFileDialog::getOpenFileName question
From: "Elio Cuevas" <elcugo () gmail ! com>
Date: 2007-08-27 23:07:58
Message-ID: a29e06b20708271607n79c8ef66j931ea09c51b2fe06 () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Thanks Carlo and Kevin. I was trying to follow the sugestion of the docs,
that specifying mime types was the preferred way. The documentation doesn't
say how to specify multiple mimetypes in a string. I tried:
"image/png\nimage/jpeg", "image/png:image/jpeg", "image/png|image/jpeg" and
many others, no luck. Maybe i should ignore the sugestion in the docs and
use shell globs?
Thanks. Elio.
2007/8/27, Carlo <brandon.ml@gmail.com>:
>
> it should be in this format
> "*.png *.jpg|Image files\n*.txt|Text files\n*.mp3 *.wav|Music files"
> 2007/8/28, Elio Cuevas <elcugo@gmail.com>:
> > Hello!
> >
> > I have a doubt about how to specify multiple mime types in
> > KFileDialog::getOpenFileName. The parameter "filter" is a QString and
> trying
> > to pass it a QStringList doesn't seem to work.
> >
> > Thanks. Elio.
> >
> >
> > >> Visit
> > http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> > unsubscribe <<
> >
> >
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> unsubscribe <<
>
[Attachment #5 (text/html)]
Thanks Carlo and Kevin. I was trying to follow the sugestion of the docs, that \
specifying mime types was the preferred way. The documentation doesn't say how to \
specify multiple mimetypes in a string. I tried: "image/png\nimage/jpeg", \
"image/png:image/jpeg", "image/png|image/jpeg" and many others, \
no luck. Maybe i should ignore the sugestion in the docs and use shell globs? \
<br><br>Thanks. Elio.<br><br><div><span class="gmail_quote">2007/8/27, Carlo <<a \
href="mailto:brandon.ml@gmail.com">brandon.ml@gmail.com</a>>:</span><blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;"> it should be in this format<br>"*.png \
*.jpg|Image files\n*.txt|Text files\n*.mp3 *.wav|Music files"<br>2007/8/28, Elio \
Cuevas <<a href="mailto:elcugo@gmail.com">elcugo@gmail.com</a>>:<br>> \
Hello!<br>> <br>> I have a doubt about how to specify multiple mime types \
in<br>> KFileDialog::getOpenFileName. The parameter "filter" is a \
QString and trying<br>> to pass it a QStringList doesn't seem to work. \
<br>><br>> Thanks. Elio.<br>><br>><br>> >> Visit<br>> <a \
href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</a> \
to<br>> unsubscribe << <br>><br>><br><br>>> Visit <a \
href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</a> \
to unsubscribe <<<br></blockquote></div><br>
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic