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. row or column count in QAbstractTableModel...

row or column count in QAbstractTableModel...

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

    In the QAbstractTableModel, if there is a HeaderView of a Model or Model spanned with several different rows or columns, is there a way to know the number of original rows and the number of columns?

    K 1 Reply Last reply
    0
    • P Pada_

      In the QAbstractTableModel, if there is a HeaderView of a Model or Model spanned with several different rows or columns, is there a way to know the number of original rows and the number of columns?

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @Pada_

      As pure virtual yes see http://doc.qt.io/qt-5/qabstractitemmodel.html#rowCount

      Vote the answer(s) that helped you to solve your issue(s)

      P 1 Reply Last reply
      1
      • K koahnig

        @Pada_

        As pure virtual yes see http://doc.qt.io/qt-5/qabstractitemmodel.html#rowCount

        P Offline
        P Offline
        Pada_
        wrote on last edited by
        #3

        @koahnig

        int QAbstractItemModel :: rowCount (const QModelIndex & parent = QModelIndex ()) const

        Does not the above function return the row count of the data? I want to know the row or column count of headView.

        1 Reply Last reply
        0
        • Christian EhrlicherC Online
          Christian EhrlicherC Online
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Why should the headers have a different row/column count than the data?

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          4

          • Login

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