[QT] Scroll multiple lists with one scrollbar

Alexis Dubois alex at duboaa.net
Thu May 28 06:44:22 EDT 2015


Le jeudi 28 mai 2015 12:12:42 UTC+2, Laura Creighton a écrit :
> You want to define a scrollable area and then add your labels to it.
> The code here: http://stackoverflow.com/questions/22255994/pyqt-adding-widgets-to-scrollarea-during-the-runtime
> 
> should show you what you need to do, though for you the job is easier if you
> do not need to add the labels after the app is running.
> 
> Laura

Thanks Laura.
But as I understand the scrollable area, it's useful to scroll widgets.
But here, in my case, I want to scroll inside my widgets.
My QlistWidgets are fixed in size and data are append inside.
Because I want only one scrollbar for all lists, I set the "setVerticalScrollBarPolicy" lists property to "ScrollBarAlwaysOff" and tried to do what I need with a QScrollBar.



More information about the Python-list mailing list