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. qml create TableView columns dynamically
Forum Updated to NodeBB v4.3 + New Features

qml create TableView columns dynamically

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 180 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
    qAminzzz
    wrote on last edited by
    #1

    hi, i'm using qt 6 and i tried the ways that i've found but didn't work

    https://forum.qt.io/topic/131139/when-qml-tableview-dynamically-creates-columns-expected-token-numeric-literal-appears (i tried it and i had the same problem)

    and i used Repeater and it doesn't work yet because i get an error ):

                Repeater
                {
                    model: ["name", "color"]
    
                    delegate: TableModelColumn { display: model }
                }
    

    the error:
    Cannot assign object to list property "columns"

    what can i do?
    thanks in advance

    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