[SOLVED] Positioning multiple scrollbars
General and Desktop
2
Posts
1
Posters
668
Views
1
Watching
-
wrote on 22 Sept 2013, 19:05 last edited by
Hi! Spent all day trying to position layouts and scrollbars the way like on this pic: !http://cs9532.vk.me/v9532936/29cb/QAlbLls761U.jpg!
Green scrollbar has to move the green bordered area left-right;
Red scrollbar has to move everything (except green scrollbar) up-down.
No success. Any suggestions? -
wrote on 23 Sept 2013, 12:19 last edited by
Found the solution!
Red bordered area = QScrollArea (with verical scroll bar on);
Green bordered area = QScrollArea with hidden scrollbars.
Green scrollbar is a separate widget QScrollBar. Its sliderMoved signal is connected to green bordered area horizontalScrollBar() setValue signal. That's it!
1/2