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 not working correctly at displaying the header's data on qt 6.7.0

TableView not working correctly at displaying the header's data on qt 6.7.0

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

    Hi

    I am implementing a tableview from this example repository site "https://github.com/rutura/learnqt_blog_posts" using qt 6.7.0 but the VerticalHeaderView and HorizontalHeaderView models are not displaying the header's data.
    I set a Breakpoint on the headerData method but it does not get called.
    I decided to use qt 6.5.3 LTS with the exact same project and this time everything works as expected.

    Does the implementation changed in qt 6.7.0?
    It seams that the headerview model is not accessing the tableview's headeData method. I also get this error on the console :

    "qrc:/qt-project.org/imports/QtQuick/Controls/Material/VerticalHeaderView.qml:36:13: Unable to assign [undefined] to QString"

    Any help on what is going on?

    Thanks

    1 Reply Last reply
    0
    • A Offline
      A Offline
      antiocles
      wrote on last edited by antiocles
      #2

      Yes, I see the exact same thing. Looks like a regression. Please file a bug.

      [EDIT]

      Several bugs filed on this already:

      https://bugreports.qt.io/browse/QTBUG-120315?filter=-4&jql=text ~ "headerData" order by created DESC

      Basically, you need to map the userRole properly... else the QML cannot access. It is correctly using the userNames function now.

      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