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 perform auto scrolling in QTAbleWidget?
QtWS25 Last Chance

How to perform auto scrolling in QTAbleWidget?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 9.2k 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.
  • A Offline
    A Offline
    aurora
    wrote on last edited by
    #1

    In my program i'm using QTableWidget.
    The table contains thousands of rows, I'm using findItem() to search specific key in table.
    The findItem returns list of QTableWidgetItems, i want to highlight all those items one by one when "NEXT" button pressed.
    But table wont performing auto scroll to view the Items below the table...
    How can i do that?

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

      Did you check QAbstractItemView::scrollTo(const QModelIndex & index, ScrollHint hint = EnsureVisible)?

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

        Try "scrollToBottom()", see "here":http://doc.trolltech.com/4.8-snapshot/qabstractitemview.html#scrollToBottom

        1 Reply Last reply
        0
        • A Offline
          A Offline
          aurora
          wrote on last edited by
          #4

          ok thank u...
          I used scrolltoItem()
          It works....:)

          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