[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-frameworks-devel
Subject:    Re: Opening files by mimetype instead of by file extension
From:       Albert Astals Cid <aacid () kde ! org>
Date:       2020-06-10 22:32:21
Message-ID: 2331553.2t2qdZ3D89 () xps
[Download RAW message or body]

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

> 
> 




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic