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. Help with changing QScrollArea behavior.

Help with changing QScrollArea behavior.

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 922 Views 1 Watching
  • 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.
  • K Offline
    K Offline
    kingGem
    wrote on last edited by
    #1

    So I have a custom widget inside of a QScrollArea, I get all of the expected behavior when my widget is bigger than the scroll area (I get scroll bars). The thing is I don't want to resize my widget. I want it to remain the same size and customize the scroll bars to scroll a custom view inside my widget.

    I tried setting the scroll bar properties in my scroll area like: verticalScrollBar()->setPageStep() or verticalScrollBar()->setRange() and all I get is scroll bars that cant be scrolled, it's basically just one big bar that fits the entire range and can't be moved. Which is the exact same thing that happens when the widget and scroll area are the same size. What should I do?

    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