Important: Please read the Qt Code of Conduct -

[SOLVED] Positioning multiple scrollbars

  • Hi! Spent all day trying to position layouts and scrollbars the way like on this pic: !!
    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