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. Qt Quick - What about the future of TableView and TableViewColum?
Forum Update on Monday, May 27th 2025

Qt Quick - What about the future of TableView and TableViewColum?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
5 Posts 2 Posters 972 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.
  • jeanmilostJ Offline
    jeanmilostJ Offline
    jeanmilost
    wrote on last edited by
    #1

    I'm using Qt Quick 5.13 for several projects, some of them require a data grid with a column header, handling advanced functionalities, among others allowing the user to resize the columns, sort their content, or swap them.

    Between the Qt Quick available components, the most suitable for my needs is the TableView component. However, there is some vagueness as to what it really supports. First of all, it seems that 2 versions of this component exist: one for the controls 1.0 and one for the controls 2.0.

    Obviously the version belonging to the controls 2.0 is the most interesting for me, because I know the limitations of the controls 1.0 (performance leaks, no high DPI support, ...). However the TableView 2.0 has a serious issue: it no longer provides any kind of TableViewColumn component. In other words, the only way to show a header above my data grid seems to be to have to write it myself, which is a painful work.

    For that reason, I wonder if I will still use the version 1.0, despite of its limitations. However several points are unclear for me. For that reason I have the following questions:

    • Will the controls 1.0, especially the TableView and the TableViewColumn ones, be tagged as obsolete in a near future, and eventually removed from Qt Quick?
    • Is a such TableViewColumn planned in a near future for the TableView 2.0 component?
    • As the high DPI support is important for my projects, is it easy to workaround this issue with the TableView 1.0 component? And if yes, how to do that?
    • Is there another component like e.g GridView, ListView, ... which already contains a ready-to-use header? If yes, which component should I use instead of the TableView one? Or what is the better choice for my situation, and why?
    • Which solution is commonly selected by the developers when they face a such situation?
    J.HilkJ 1 Reply Last reply
    0
    • jeanmilostJ jeanmilost

      I'm using Qt Quick 5.13 for several projects, some of them require a data grid with a column header, handling advanced functionalities, among others allowing the user to resize the columns, sort their content, or swap them.

      Between the Qt Quick available components, the most suitable for my needs is the TableView component. However, there is some vagueness as to what it really supports. First of all, it seems that 2 versions of this component exist: one for the controls 1.0 and one for the controls 2.0.

      Obviously the version belonging to the controls 2.0 is the most interesting for me, because I know the limitations of the controls 1.0 (performance leaks, no high DPI support, ...). However the TableView 2.0 has a serious issue: it no longer provides any kind of TableViewColumn component. In other words, the only way to show a header above my data grid seems to be to have to write it myself, which is a painful work.

      For that reason, I wonder if I will still use the version 1.0, despite of its limitations. However several points are unclear for me. For that reason I have the following questions:

      • Will the controls 1.0, especially the TableView and the TableViewColumn ones, be tagged as obsolete in a near future, and eventually removed from Qt Quick?
      • Is a such TableViewColumn planned in a near future for the TableView 2.0 component?
      • As the high DPI support is important for my projects, is it easy to workaround this issue with the TableView 1.0 component? And if yes, how to do that?
      • Is there another component like e.g GridView, ListView, ... which already contains a ready-to-use header? If yes, which component should I use instead of the TableView one? Or what is the better choice for my situation, and why?
      • Which solution is commonly selected by the developers when they face a such situation?
      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by J.Hilk
      #2

      Hi @jeanmilost

      I'm not able to answer all your question, but some I can

      Will the controls 1.0, especially the TableView and the TableViewColumn ones, be tagged as obsolete in a near future, and eventually removed from Qt Quick?

      Yes, they will. AFAIK Qt 5.15 will still contain controls 1 but it should be dropped in the following Qt release (Qt6)

      Is a such TableViewColumn planned in a near future for the TableView 2.0 component?

      as far as I know, it is planned. But with no time table for it.

      As the high DPI support is important for my projects, is it easy to workaround this issue with the TableView 1.0 component? And if yes, how to do that?

      No idea :)

      Is there another component like e.g GridView, ListView, ... which already contains a ready-to-use header? If yes, which component should I use instead of the TableView one? Or what is the better choice for my situation, and why?

      As far as I'm aware, no


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      jeanmilostJ 1 Reply Last reply
      1
      • J.HilkJ J.Hilk

        Hi @jeanmilost

        I'm not able to answer all your question, but some I can

        Will the controls 1.0, especially the TableView and the TableViewColumn ones, be tagged as obsolete in a near future, and eventually removed from Qt Quick?

        Yes, they will. AFAIK Qt 5.15 will still contain controls 1 but it should be dropped in the following Qt release (Qt6)

        Is a such TableViewColumn planned in a near future for the TableView 2.0 component?

        as far as I know, it is planned. But with no time table for it.

        As the high DPI support is important for my projects, is it easy to workaround this issue with the TableView 1.0 component? And if yes, how to do that?

        No idea :)

        Is there another component like e.g GridView, ListView, ... which already contains a ready-to-use header? If yes, which component should I use instead of the TableView one? Or what is the better choice for my situation, and why?

        As far as I'm aware, no

        jeanmilostJ Offline
        jeanmilostJ Offline
        jeanmilost
        wrote on last edited by
        #3

        Hi @J.Hill,
        Thank you for these info.

        Since I have to write my header myself, is there several good examples about how to achieve that? (I.e examples about how to create a header supporting advanced functions such as resizing, item drag and dropping, sorting, checkbox, ...)

        Regards

        J.HilkJ 1 Reply Last reply
        0
        • jeanmilostJ jeanmilost

          Hi @J.Hill,
          Thank you for these info.

          Since I have to write my header myself, is there several good examples about how to achieve that? (I.e examples about how to create a header supporting advanced functions such as resizing, item drag and dropping, sorting, checkbox, ...)

          Regards

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by
          #4

          @jeanmilost
          lmgtfy
          https://www.youtube.com/watch?v=oV3aguIZLfg

          Just watched it, reasonably good tutorial in fact 😉


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          jeanmilostJ 1 Reply Last reply
          0
          • J.HilkJ J.Hilk

            @jeanmilost
            lmgtfy
            https://www.youtube.com/watch?v=oV3aguIZLfg

            Just watched it, reasonably good tutorial in fact 😉

            jeanmilostJ Offline
            jeanmilostJ Offline
            jeanmilost
            wrote on last edited by
            #5

            @J-Hilk,

            Thank you very much

            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