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 new TableView in 5.15

How to use new TableView in 5.15

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 2 Posters 913 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.
  • nooneN Offline
    nooneN Offline
    noone
    wrote on last edited by noone
    #1

    I want to use new TableView introduced in Qt 5.12. sadly it doesn't have a header, row selection and much of the basic functionality of TableView in QtQuick Controls 1. I don't mind using old TableView but it doesn't have Material theme and also docs say that QtQuick Controls 1 is deprecated and I should use 2. I am completely new to QML so making everything from scratch is hard for me

    from https://wiki.qt.io/New_Features_in_Qt_5.15

    Qt Quick Controls 2
    Added HorizontalHeaderView and VerticalHeaderView to display header data in a TableView. Support flicking synchronization, and default, fusion, imagine, material, and universal delegate styles.

    So I compiled 5.15beta from the source but I can't find anything about headers in 5.15 docs. it's same as 5.14. Am I missing something?
    All I want is tableview like the one in old QtQuickControls 1 with headers and row selection. This should be basic functionality of every table

    raven-worxR 1 Reply Last reply
    0
    • nooneN noone

      I want to use new TableView introduced in Qt 5.12. sadly it doesn't have a header, row selection and much of the basic functionality of TableView in QtQuick Controls 1. I don't mind using old TableView but it doesn't have Material theme and also docs say that QtQuick Controls 1 is deprecated and I should use 2. I am completely new to QML so making everything from scratch is hard for me

      from https://wiki.qt.io/New_Features_in_Qt_5.15

      Qt Quick Controls 2
      Added HorizontalHeaderView and VerticalHeaderView to display header data in a TableView. Support flicking synchronization, and default, fusion, imagine, material, and universal delegate styles.

      So I compiled 5.15beta from the source but I can't find anything about headers in 5.15 docs. it's same as 5.14. Am I missing something?
      All I want is tableview like the one in old QtQuickControls 1 with headers and row selection. This should be basic functionality of every table

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @noone
      seems the documentation hasnt made it yet into a alpha/beta release i think:
      https://codereview.qt-project.org/gitweb?p=qt%2Fqtquickcontrols2.git;a=commit;h=614759bf9a16a8ffb589edadcbef61ec24c9ec08

      but here you have the example:
      https://codereview.qt-project.org/gitweb?p=qt/qtquickcontrols2.git;a=blob;f=src/imports/controls/doc/snippets/qtquickcontrols2-headerview-simple.qml;h=bea46bf33e0007968acf0b4946f029d35f72b788;hb=614759bf9a16a8ffb589edadcbef61ec24c9ec08

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      3

      • Login

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