Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved ListView with QSqlTableModel

    QML and Qt Quick
    2
    3
    1286
    Loading More Posts
    • 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.
    • I
      Infinity last edited by A Former User

      I would like to use a QSqlTableModel as a model for a ListView in QML. I used this tutorial to try how to use C++ with QML. This worked very well. Now I would like to store and read the date in a MySql database. How does a QSqlTableModel class have to look like that I can use it in the ListView in QML? Are there any examples around which address this issue?

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        Did you already saw the Using C++ Models with Qt Quick Views chapter in Qt's documentation ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote -1
        • I
          Infinity last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • First post
            Last post