Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] Positioning multiple scrollbars

[SOLVED] Positioning multiple scrollbars

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 665 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pajah
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • P Offline
      P Offline
      pajah
      wrote on last edited by
      #2

      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 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved