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 to check if the tree view is currently scrolling

How to check if the tree view is currently scrolling

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 300 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.
  • S Offline
    S Offline
    summit
    wrote on last edited by
    #1

    I am deriving my Tree View from QAbstract item model.

    Can i get to know when the user would be scrolling vertically the tree view.

    i Could not find any function like isScrolling().

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by VRonin
      #2

      Tree View from QAbstract item model.

      A view from a model is odd

      any function like isScrolling()

      Doesn't make much sense, you can get a signal when the value of the scrollbar changes but I'm not sure it's what you are after. What are you trying to do exactly?

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      3
      • S Offline
        S Offline
        summit
        wrote on last edited by
        #3

        @VRonin how can i get the signal when the value from the scroll bar changes.

        mrjjM 1 Reply Last reply
        0
        • S summit

          @VRonin how can i get the signal when the value from the scroll bar changes.

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @summit
          Hi
          you get to the scrollbar like this
          verticalScrollBar() (inside your class)
          so you connect its valuechanged signal to your own function.
          https://doc.qt.io/qt-5.15/qscrollbar.html#details
          or maybe sliderMoved() depending on what you want.

          1 Reply Last reply
          1

          • Login

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