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. [Solved]Rowcount Tableview
Forum Updated to NodeBB v4.3 + New Features

[Solved]Rowcount Tableview

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

    In QTablewidget there is a rowcount method.
    But I didn't find this in QTableview ref.

    Is there an other method for this or

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

      You can use the rowCount method of the model you use instead.

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

        I think like this "model()":http://doc.qt.nokia.com/latest/qabstractitemview.html#model and then "rowCount()":http://doc.qt.nokia.com/latest/qabstractitemmodel.html#rowCount

        1 Reply Last reply
        0
        • T Offline
          T Offline
          toho71
          wrote on last edited by
          #4

          Thank you
          Worked perfectly

          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