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. Can't drag a scroll bar in QScrollArea

Can't drag a scroll bar in QScrollArea

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 416 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.
  • J Offline
    J Offline
    jsaunders
    wrote on last edited by
    #1

    Re: Can't drag a ScrollBar

    I'm working with a Qt 5.12.3 Widget Project.

    In it, I have QScrollAreas in several different widgets and they all act the same. The mouse wheel works, the up and down arrows on the bar work, but I can't drag the scroll bar using the mouse. I've seen this problem posted elsewhere but have yet to find a solution. Is there a secret parameter I need to flick the switch on?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      You are reference a QML post but i assume we are talking QWidgets here ?

      In any case, there no extra thing to allow dragging on scrollbars but
      if you use Touch capture to allow touch scrolling like
      QScroller::grabGesture(xxx,QScroller::LeftMouseButtonGesture);

      Then it could be due to that.

      If you are not using grabGesture or similar then something is up with your code.

      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