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. Retrieve the visible QTabeleWidgetItems in a QTableWidget with ScrollBars

Retrieve the visible QTabeleWidgetItems in a QTableWidget with ScrollBars

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 851 Views 1 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.
  • R Offline
    R Offline
    rakor
    wrote on last edited by
    #1

    Hi there,

    I have a large QTableWidget (which is a kind of calendar) which has a horizontal scrollbar. I'd like to retrieve the currently visible QTableWidgetItems.
    The reason is that I want to display some informations depending to the currently visible items.

    Is there a way to get this information?

    Thank you all!

    1 Reply Last reply
    0
    • M Offline
      M Offline
      maniek1310
      wrote on last edited by
      #2

      I do not know much English, but this should help you.

      http://qt-project.org/doc/qt-5/qtablewidget-members.html

      Ps. Qt 5.3

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rakor
        wrote on last edited by
        #3

        Thanks, but I already searched the documentation without finding a solution for me. I am using 5.1 atm but also looking in the 5.3 documentation did not give me a hint...

        I saw the visibleRegion()-method, but I don't know how I should get my visible items out of that.

        Could you give me an example?

        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