enricong
21st June 2012, 19:52
I have a rectangular area at the bottom of my application. I would like to horizontally add a list of "tiles" (vertically a QLabel and a QGraphicsView). As I add tiles (problematically) I'd like a horizontal scrollbar to appear. The aspect ratio needs to be fixed. They can resize larger if the height grows.
I setup a QGridLayout then in my software I simply do "layout->addWidget(....)" adding to the correct rows and columns.
However this just squeezes everything into the view instead of adding a scrollbar and the aspect ratio is maintained.
Is there a scrolling layout I can use?
I setup a QGridLayout then in my software I simply do "layout->addWidget(....)" adding to the correct rows and columns.
However this just squeezes everything into the view instead of adding a scrollbar and the aspect ratio is maintained.
Is there a scrolling layout I can use?