Re: Opening files by mimetype instead of by file extension
El dimecres, 10 de juny de 2020, a les 11:52:03 CEST, David Faure va escriure: > On mercredi 10 juin 2020 00:52:16 CEST Albert Astals Cid wrote: > > As far as I can see QFileDialog only supports listing by file extension. > > > > On the other hand it seems in GTK+ land you can get an open file dialog > > listing by mimetype, so I've got one bug about "you're worse than XXX > > because you can't do this" > > What does "list by mimetype" mean exactly? > Is this about a mimetype column in the table/tree view? (missing) > Is this about the filter combobox showing mimetypes? (supported) > Or is it something else? It's about using https://doc.qt.io/qt-5/qfiledialog.html#setMimeTypeFilters ^_^ Thanks Friedrich on IRC for reminding me that function exists And sorry for the noise. Cheers, Albert > >
Re: Opening files by mimetype instead of by file extension
On mercredi 10 juin 2020 00:52:16 CEST Albert Astals Cid wrote: > As far as I can see QFileDialog only supports listing by file extension. > > On the other hand it seems in GTK+ land you can get an open file dialog > listing by mimetype, so I've got one bug about "you're worse than XXX > because you can't do this" What does "list by mimetype" mean exactly? Is this about a mimetype column in the table/tree view? (missing) Is this about the filter combobox showing mimetypes? (supported) Or is it something else? -- David Faure, fa...@kde.org, http://www.davidfaure.fr Working on KDE Frameworks 5
Re: Opening files by mimetype instead of by file extension
On Wednesday 10 Jun 2020 00:52:16 Albert Astals Cid wrote: > As far as I can see QFileDialog only supports listing by file extension. > > On the other hand it seems in GTK+ land you can get an open file dialog > listing by mimetype, so I've got one bug about "you're worse than XXX > because you can't do this" > > Is there something we could do at the KDE Frameworks level to support this > feature? > > Or should this be done in Qt? KFileCustomDialog lists by mimetype. -- David Jarvie. KDE developer. KAlarm author -- http://www.astrojar.org.uk/kalarm
Opening files by mimetype instead of by file extension
As far as I can see QFileDialog only supports listing by file extension. On the other hand it seems in GTK+ land you can get an open file dialog listing by mimetype, so I've got one bug about "you're worse than XXX because you can't do this" Is there something we could do at the KDE Frameworks level to support this feature? Or should this be done in Qt? Cheers, Albert