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. TableView replacement in Qt Quick 2?
Forum Updated to NodeBB v4.3 + New Features

TableView replacement in Qt Quick 2?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
7 Posts 3 Posters 2.3k 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.
  • I Offline
    I Offline
    igor_stravinsky
    wrote on last edited by
    #1

    What are people using in Qt Quick 2 for a TableView?

    I need to display multi-column, multi-row data with a header on each column. Is using a GridView the best way forward, or is there another option?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      The TableView component seems to be what you're looking for.

      (Z(:^

      1 Reply Last reply
      0
      • JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by JonB
        #3

        This has been asked before. @sierdzio 's suggestion is the control from Qt Quick QtQuick.Controls 1, which still apparently works in 2.

        sierdzioS 1 Reply Last reply
        0
        • JonBJ JonB

          This has been asked before. @sierdzio 's suggestion is the control from Qt Quick QtQuick.Controls 1, which still apparently works in 2.

          sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          @JNBarchan said in TableView replacement in Qt Quick 2?:

          @sierdzio 's suggestion is the control from Qt Quick 1, which still apparently works in 2.

          Incorrect. TableView comes from QtQuick.Controls 1.x, not QtQuick 1. It was not present at all in QtQuick 1.

          But yes, it is possible to mix QtQuick.Controls 1 and 2 so it should work regardless of which system OP uses.

          (Z(:^

          JonBJ 1 Reply Last reply
          0
          • sierdzioS sierdzio

            @JNBarchan said in TableView replacement in Qt Quick 2?:

            @sierdzio 's suggestion is the control from Qt Quick 1, which still apparently works in 2.

            Incorrect. TableView comes from QtQuick.Controls 1.x, not QtQuick 1. It was not present at all in QtQuick 1.

            But yes, it is possible to mix QtQuick.Controls 1 and 2 so it should work regardless of which system OP uses.

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by JonB
            #5

            @sierdzio
            Sorry I did mean "QtQuick.Controls" rather than "QtQuick". It was the version difference I was trying to point out. I'll correct my post....

            1 Reply Last reply
            1
            • I Offline
              I Offline
              igor_stravinsky
              wrote on last edited by
              #6

              I've had problems mixing QtQuickControls 1 with 2.x controls. I think the problems centered around different implementations of the same class had different properties in the two versions. Is mixing the two standard process?
              If so, I'll have another go.

              I also remember reading that 2.0 was created to deal with highDPI issues. Will I have problems on highDPI screens with a TableView?

              sierdzioS 1 Reply Last reply
              0
              • I igor_stravinsky

                I've had problems mixing QtQuickControls 1 with 2.x controls. I think the problems centered around different implementations of the same class had different properties in the two versions. Is mixing the two standard process?
                If so, I'll have another go.

                I also remember reading that 2.0 was created to deal with highDPI issues. Will I have problems on highDPI screens with a TableView?

                sierdzioS Offline
                sierdzioS Offline
                sierdzio
                Moderators
                wrote on last edited by
                #7

                @igor_stravinsky said in TableView replacement in Qt Quick 2?:

                I also remember reading that 2.0 was created to deal with highDPI issues. Will I have problems on highDPI screens with a TableView?

                Quite possibly yes.

                A new TableView is in the works, as far as I know, but not ready yet.

                (Z(:^

                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