Re: [QT] Scroll multiple lists with one scrollbar

2015-05-28 Thread Laura Creighton
In a message of Thu, 28 May 2015 05:53:34 -0700, Alexis Dubois writes: >Thank you Laura, it works. >(Even if connecting the scrollbar of one list to other lists is not what I >exactly want to do, but no matter, I change the line >"w1.verticalScrollBar().valueChanged.connect(w2.verticalScrollBar()

Re: [QT] Scroll multiple lists with one scrollbar

2015-05-28 Thread Alexis Dubois
Thank you Laura, it works. (Even if connecting the scrollbar of one list to other lists is not what I exactly want to do, but no matter, I change the line "w1.verticalScrollBar().valueChanged.connect(w2.verticalScrollBar().setValue)" a little bit to fit my need. ) -- https://mail.python.org/mai

Re: [QT] Scroll multiple lists with one scrollbar

2015-05-28 Thread Alexis Dubois
Thanks Peter, but no, even if it could be possible to use a QTableWidget instead of my 8 lists. -- https://mail.python.org/mailman/listinfo/python-list

Re: [QT] Scroll multiple lists with one scrollbar

2015-05-28 Thread Peter Otten
Alexis Dubois wrote: > My QT GUI contains 8 QlistWidgets filled with a large amount of data. > Each item of a list is related to items of other lists in the same row. > So I want to scroll the 8 lists with only one vertical scrollbar (and > vice-versa) > > But I don't know how to manage this. > D

Re: [QT] Scroll multiple lists with one scrollbar

2015-05-28 Thread Laura Creighton
Looks like what you need to do is to connect verticalScrollBar().valueChanged (in one widget) to verticalScrollBar().setValue in all of the others. So is this code on the right track? It uses lists, not labels, and doesn't hide the scrollbars, but is this the behaviour you need ( and weren't get

Re: [QT] Scroll multiple lists with one scrollbar

2015-05-28 Thread Laura Creighton
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-scr

Re: [QT] Scroll multiple lists with one scrollbar

2015-05-28 Thread Alexis Dubois
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

Re: [QT] Scroll multiple lists with one scrollbar

2015-05-28 Thread Laura Creighton
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

[QT] Scroll multiple lists with one scrollbar

2015-05-28 Thread Alexis Dubois
Hello everyone! My QT GUI contains 8 QlistWidgets filled with a large amount of data. Each item of a list is related to items of other lists in the same row. So I want to scroll the 8 lists with only one vertical scrollbar (and vice-versa) But I don't know how to manage this. Do you have an idea