V
V
Velklish2019-06-24 20:49:29
Qt
Velklish, 2019-06-24 20:49:29

How to put multiple widgets in QListModel?

I'm just getting started with Qt, so this might be a dumb question.
Is it possible to add a widget like QPushButton or QCheckBox to the ListModel?
And if possible, how to do it, and how then to display this widget? Ideally, it should look like the picture.
5d110cbf7eceb205057934.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ighor July, 2019-06-24
@IGHOR

Yes you can, you need a QListView, a model and a QItemDelegate

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question