Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

[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