[SOLVED] Positioning multiple scrollbars



  • 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?



  • 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!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.