Anybody here has ideas how I can implement a QFileDialog with thumbnail view? I can't see a thread like this
Anybody here has ideas how I can implement a QFileDialog with thumbnail view? I can't see a thread like this
Image Analysis Development Framework Using Qt (IADFUQ)
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.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.
Last edited by sincnarf; 13th October 2007 at 22:36.
Image Analysis Development Framework Using Qt (IADFUQ)
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.
Bookmarks