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 update
Qt 6.11 is out! See what's new in the release blog

QML tableview update

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 1.2k Views 1 Watching
  • 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.
  • B Offline
    B Offline
    Babs
    wrote on last edited by
    #1

    Hello. I'm working on a CAN Bus Sniffer QML application. My application must display CAN messages in tabular form.
    0_1549614203193_qt.PNG

    I'm using a ListView to display data that is stored in a QStringList in C++. The first column contains identifiers and the other the data.
    What i want to do is display data with same identifier in a single line. For example for the identifier 4FF , data sent a this identifier must be displayed in a single line. I mean it must be refreshed.
    Anyone get an idea?

    raven-worxR 1 Reply Last reply
    0
    • B Babs

      Hello. I'm working on a CAN Bus Sniffer QML application. My application must display CAN messages in tabular form.
      0_1549614203193_qt.PNG

      I'm using a ListView to display data that is stored in a QStringList in C++. The first column contains identifiers and the other the data.
      What i want to do is display data with same identifier in a single line. For example for the identifier 4FF , data sent a this identifier must be displayed in a single line. I mean it must be refreshed.
      Anyone get an idea?

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @Babs
      Since you are using a QStringList model this is very cumbersome.

      I suggest you implement this cleanly in a C++ model and use it in QML:
      https://doc.qt.io/qt-5/qtquick-modelviewsdata-cppmodels.html

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      B 1 Reply Last reply
      0
      • raven-worxR raven-worx

        @Babs
        Since you are using a QStringList model this is very cumbersome.

        I suggest you implement this cleanly in a C++ model and use it in QML:
        https://doc.qt.io/qt-5/qtquick-modelviewsdata-cppmodels.html

        B Offline
        B Offline
        Babs
        wrote on last edited by
        #3

        @raven-worx said in QML tableview update:

        cumbersome

        Thank. I'll try to do so

        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