[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&#39;t say how to \
specify multiple mimetypes in a string. I tried: &quot;image/png\nimage/jpeg&quot;, \
&quot;image/png:image/jpeg&quot;, &quot;image/png|image/jpeg&quot; 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 &lt;<a \
href="mailto:brandon.ml@gmail.com">brandon.ml@gmail.com</a>&gt;:</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>&quot;*.png \
*.jpg|Image files\n*.txt|Text files\n*.mp3 *.wav|Music files&quot;<br>2007/8/28, Elio \
Cuevas &lt;<a href="mailto:elcugo@gmail.com">elcugo@gmail.com</a>&gt;:<br>&gt; \
Hello!<br>&gt; <br>&gt; I have a doubt about how to specify multiple mime types \
in<br>&gt; KFileDialog::getOpenFileName. The parameter &quot;filter&quot; is a \
QString and trying<br>&gt; to pass it a QStringList doesn&#39;t seem to work. \
<br>&gt;<br>&gt; Thanks. Elio.<br>&gt;<br>&gt;<br>&gt; &gt;&gt; Visit<br>&gt; <a \
href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</a> \
to<br>&gt; unsubscribe &lt;&lt; <br>&gt;<br>&gt;<br><br>&gt;&gt; Visit <a \
href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</a> \
to unsubscribe &lt;&lt;<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