[QT] Scroll multiple lists with one scrollbar

Laura Creighton lac at openend.se
Thu May 28 06:54:14 EDT 2015


In a message of Thu, 28 May 2015 03:44:22 -0700, Alexis Dubois writes:
>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.

Ah, sorry, I misunderstood the question.

Hmmm.  I've never tried to do that.  Let me see if I can get something
to work.

Back later,
hack hack hack!
Laura



More information about the Python-list mailing list