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. QScrollArea signal
QtWS25 Last Chance

QScrollArea signal

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 4.0k 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.
  • E Offline
    E Offline
    evergreen
    wrote on last edited by
    #1

    Hello,

    I need by QScrollArea to do something specific when the scroll bar appears. I can't find the signal or a method that could help me know when the area is too big and the scroll bar appears.

    Can someone help?

    Thanks

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      You might try to install an event filter on the scroll bars of the QScrollArea, and listen for the showEvent. If it is not spontaneous, it came from the application itself. I think that would equate to the QScrollArea showing the widget. There are no signals you can use that I am aware of.

      1 Reply Last reply
      0
      • E Offline
        E Offline
        evergreen
        wrote on last edited by
        #3

        Thanks for the advices.

        I really thought Qt would manage the appearance of the scrollbar with signals.
        I'll try the eventfilter based in the showEvent.

        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