Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. how to use TableModelColumn in qt 5.15.2
Forum Updated to NodeBB v4.3 + New Features

how to use TableModelColumn in qt 5.15.2

Scheduled Pinned Locked Moved Solved QML and Qt Quick
4 Posts 1 Posters 373 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.
  • JoeCFDJ Offline
    JoeCFDJ Offline
    JoeCFD
    wrote on last edited by
    #1

    I am trying to add titles with TableModelColumn to qml tableview. It seems that TableModelColumn was made for QtQuick.Controls 1.4. Any replacement for QtQuick.Controls 2.15?

    JoeCFDJ 1 Reply Last reply
    0
    • JoeCFDJ JoeCFD

      @JoeCFD it seems HorizontalHeaderView needs to be used. Some people use Row layout to add titles inside qml TableView.

      JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by
      #4

      @JoeCFD Created a customized tableview with HorizontalHeaderView and VerticalHeaderView

      1 Reply Last reply
      0
      • JoeCFDJ JoeCFD

        I am trying to add titles with TableModelColumn to qml tableview. It seems that TableModelColumn was made for QtQuick.Controls 1.4. Any replacement for QtQuick.Controls 2.15?

        JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by JoeCFD
        #2

        @JoeCFD I need to
        import Qt.labs.qmlmodels 1.0
        But these are experimental modules. And TableModelColumn sets only role and can not be used to set titles.

        JoeCFDJ 1 Reply Last reply
        0
        • JoeCFDJ JoeCFD

          @JoeCFD I need to
          import Qt.labs.qmlmodels 1.0
          But these are experimental modules. And TableModelColumn sets only role and can not be used to set titles.

          JoeCFDJ Offline
          JoeCFDJ Offline
          JoeCFD
          wrote on last edited by JoeCFD
          #3

          @JoeCFD it seems HorizontalHeaderView needs to be used. Some people use Row layout to add titles inside qml TableView.

          JoeCFDJ 1 Reply Last reply
          0
          • JoeCFDJ JoeCFD

            @JoeCFD it seems HorizontalHeaderView needs to be used. Some people use Row layout to add titles inside qml TableView.

            JoeCFDJ Offline
            JoeCFDJ Offline
            JoeCFD
            wrote on last edited by
            #4

            @JoeCFD Created a customized tableview with HorizontalHeaderView and VerticalHeaderView

            1 Reply Last reply
            0
            • JoeCFDJ JoeCFD has marked this topic as solved on

            • Login

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