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 TableView Add New Row
Forum Updated to NodeBB v4.3 + New Features

QML TableView Add New Row

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

    Hi friends,
    I am new to QML. I just started the Qt platform. I'm dealing with TableView. How can I add a new row to a generated table later?
    Regards.

    1 Reply Last reply
    0
    • KillerSmathK Offline
      KillerSmathK Offline
      KillerSmath
      wrote on last edited by KillerSmath
      #2

      @rmzngulcan
      Table View uses Model-View-Delegate paradigm.

      • Model storages the data
      • Delegate says how the data must be showed to final user.
      • View is the container

      Read More:
      http://doc.qt.io/qt-5/model-view-programming.html
      http://doc.qt.io/qt-5/qml-qtquick-controls-tableview.html#details
      http://doc.qt.io/qt-5/qml-qtqml-models-listmodel.html#append-method

      For add a new line, you just need to add a new data on model and it will update the view :)

      @Computer Science Student - Brazil
      Web Developer and Researcher
      “Sometimes it’s the people no one imagines anything of who do the things that no one can imagine.” - Alan Turing

      1 Reply Last reply
      1

      • Login

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