I'm looking to create a grid based photo album viewer similar to the image I attached below from Adobe Lightroom (see the center tool).
The idea being that you can scale the view which would change how many thumbnails are displayed on a given row. I also want to be able to rearrange the thumbnails in the grid and even have empty cells between images.
I was thinking that there are a few ways to go about this but I wanted to see if anyone thought one way might be better than another.
1. Use a QGraphicsView
- not sure how to accomplish it with a QGraphicsView especially when it comes to zooming since the QGraphicsView zoom scales the painter and doesnt give you a real flow layout. (right?) though i probably dont need to use the graphics view to scale/zoom
- I would think this would be the most flexible, allow interesting things like grouping thumbnails and such, not sure how to do it
2. Use a QListView and turn on QListView::IconMode.
- create thumbnail items and place holder items to simulate a grid?
- probably use an item delegate for finer control
3. Write it from scratch and use the example "FlowLayout"
Any ideas?
Bookmarks