Anybody here has ideas how I can implement a QFileDialog with thumbnail view? I can't see a thread like this
Printable View
Anybody here has ideas how I can implement a QFileDialog with thumbnail view? I can't see a thread like this
It's ok on Vista. The file dialog is native. so if the platform supports thumbnail views then it should be there.
Have you tested with other applications?
You can set a custom item delegate on the dialog using QFileDialog::setItemDelegate(). You can render the items as you want there.
I think it is impossible(or at least a long way) to cover all the file formats that can be previewed by the native window manager.Quote:
You can set a custom item delegate on the dialog using QFileDialog::setItemDelegate(). You can render the items as you want there.
Maybe he can use delegates to preview image files in supported formats by Qt, but there are previews for pdf, avi, wmv, mpg, etc.
He asked for a way to implement a thumbnail file dialog, not for a ready solution. One can always use libMagick to generate thumbnails, it supports over 200 formats.
Then you can use Wysota's solution, with delegates.
Delegate examples are in the itemviews directory. And many delegate threads are available on this forum, just try searching it.