Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Recommendation for displaying data in rows?

Recommendation for displaying data in rows?

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 938 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.
  • A Offline
    A Offline
    adutzu89
    wrote on last edited by
    #1

    I want to get data through QNetworkAccessManager and after that that display it, the data will be in rows, what should I use?
    The ideea is that the data should not be editable, and can have multiple columns(hidden columns) so on tap a dialog is displayed with more information about the selected row.

    I know that views are better in this situation, but I am very bad at reimplementing virtual functions from abstract classes, and couldn't find a model that suits my need.

    Any help is appreciated.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You could use a QTableView and implement your own model based on QAbstractTableModel.

      Hope it helps

      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
      0
      • A Offline
        A Offline
        adutzu89
        wrote on last edited by
        #3

        Thank you for your response, I think I will use QAbstractTableModel since I didn't found any alternative ways.

        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