Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to generate dynamic desktop icons on Windows and Mac OS X
If you save an image (e.g. a PNG file) to your Windows or Mac desktop the document icon is a dynamically generated thumbnail of the image. I want to programmatically generate thumbnails for my own application documents.
I understand that this requires a 'Quicklook plugin' on Mac OS X. I'm not sure about Windows.
I found some documentation about QWinThumbnailToolBar, but that only seems to set the toolbar icon thumbnail, not the desktop icon.
Does anyone know of example code to do this on Windows and/or Mac? I'm sure I am not the first person to do this in Qt.
"generate thumbnails for my own application documents"
On windows, I think such function is handled by a Shell extension.
a Windows Shell preview handle.
@mrjj Thanks. I will take a look. Hopefully someone else can point me in the right direction for Mac OS X.
For OS X, it's a QuickLook plugin. More information here
@SGaist Thanks. It looks like a lot of work, especially given that I don't haven't objective-C experience!
I was rather hoping that someone would have a working example that I could adapt.
What is the format of your file ?
@SGaist Sorry for the very belated reply. The file format is XML.
Something like SVG ?