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 send a signal to QML that TableView requires an update?
QtWS25 Last Chance

How to send a signal to QML that TableView requires an update?

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

    I am using a TableView https://doc.qt.io/qt-5/qml-qtquick-tableview.html for displaying information. The information is updated from C++. How can I send a signal to qml the TableView has been updated?

    Possibly I may use https://doc.qt.io/qt-5/qtqml-cppintegration-interactqmlfromcpp.html#invoking-qml-methods , but is this really the way to go?

    Vote the answer(s) that helped you to solve your issue(s)

    T 1 Reply Last reply
    0
    • K koahnig

      I am using a TableView https://doc.qt.io/qt-5/qml-qtquick-tableview.html for displaying information. The information is updated from C++. How can I send a signal to qml the TableView has been updated?

      Possibly I may use https://doc.qt.io/qt-5/qtqml-cppintegration-interactqmlfromcpp.html#invoking-qml-methods , but is this really the way to go?

      T Offline
      T Offline
      Tom_H
      wrote on last edited by
      #2

      @koahnig emit dataChanged

      K 1 Reply Last reply
      3
      • T Tom_H

        @koahnig emit dataChanged

        K Offline
        K Offline
        koahnig
        wrote on last edited by
        #3

        @Tom_H

        OK, that works. Apparently shouldn't think of different instances there.

        Vote the answer(s) that helped you to solve your issue(s)

        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