View Single Post
Old 08-02-2025, 02:43 PM   #28
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,918
Karma: 6240958
Join Date: Nov 2009
Device: many
FWIW, if we ever decide to go all Non-Native, I have found a PreviewFileDialog class that wraps a QFileDialog and adds a Preview QImage Pixmap in an added right side panel. So when a user clicks on an image file, a thumbnail is created and shown.

We can also set a QFileDialog Option to not use third party QFileIconProviders which is supposed to greatly speed up network access.

I will play around with the PreviewFileDialog code to try to extend it to add an image for text files showing a bit of content and maybe even auto extract the cover image from an epub.

That should make using Non-native file dialogs less painful.

Update, I added a Preview for a number of text file formats such as xml, css, js, html, htm, xhtml, etc. So between those types having Previews and image types having Previews, we are pretty much covering what could get added normally to an epub.

Last edited by KevinH; 08-03-2025 at 01:31 PM.
KevinH is offline   Reply With Quote