[Qt-interest] Scrollable list of Push Buttons

Ross Bencina rossb-lists at audiomulch.com
Sun Apr 3 21:58:36 CEST 2011


> Im trying to implement a list of scrollable buttons. But no combination 
> seems to
> work. I tried the hirearchy QScrollView > QVBoxLayout > QPushButton
>
> However nothing seems to be scrollable. How may I implement this. Also how 
> do I
> catch the event of each button clicked in this list.

If you look at the help file for QScrollView it says: The child widget must 
be specified with setWidget().

You might need to do this:

QScrollView > QWidget > QVBoxLayout > QPushButton


Ross. 




More information about the Qt-interest-old mailing list