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. How can I get the scrollbar value of one widget in a scrollarea
Forum Updated to NodeBB v4.3 + New Features

How can I get the scrollbar value of one widget in a scrollarea

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

    I want to make when I click a widget in the Scrollarea ,the view will be moved ( set the scrollbar value) so that the widget will be as high as possible above the view.
    So now how to get the value of scrollbar corresponding to the widget.

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

      Hi
      Did you try to fool around with
      https://doc.qt.io/qt-5/qscrollarea.html#ensureWidgetVisible
      and the margin to see if that can be used ?

      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