How to build simple filmstrip component in Qt for viewing picture slides?
-
wrote on 30 Sept 2011, 05:48 last edited by
hello
how can i build simple vertical filmstrip component like in this like look the "GalleryView" example:
"GalleryView":http://www.queness.com/post/3141/10-image-galleries-jquery-script-with-thumbnail-filmstrip -
wrote on 30 Sept 2011, 06:02 last edited by
May be the easiest way is to use Qt Quick. You can use "ListView":http://doc.qt.nokia.com/4.7-snapshot/qml-listview.html for image previews with highlight component to mark image current image.
-
wrote on 30 Sept 2011, 06:24 last edited by
no im using the c++ way .
-
wrote on 30 Sept 2011, 13:47 last edited by
We've done something similar with a [[Doc:QListView]] subclass in icon mode, a home-brown [[Doc:QAbstractItemModel]] subclasse to hold the image metadata, and a [[Doc:QStyledItemDelegate]] subclass to draw the image slides.
-
wrote on 2 Oct 2011, 08:10 last edited by
Sure, it can be done using pure c++. Or you can use all the work already done by the Quick team and create a widget that is internally using QML to do the same with less work. Really, Quick is made for this kind of graphic UI stuff, and Quick 1 can be easily mixed with classic C++.
1/5