Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Recommendation for displaying data in rows?



  • 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.


  • Lifetime Qt Champion

    Hi,

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

    Hope it helps



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


Log in to reply