Custom Listview with all-time editable items
I need to create a list of widgets for editing my data model. Every item needs to be "interactive" all the time - to respond to user interaction, and even change it's size.
Similar effect can be found in the Amarok player - the stars for song popularity can be clicked and worked with even when there is no request for editing.
Do you have any example or text for me to read on how to achieve this in QT4?
:confused:
Re: Custom Listview with all-time editable items
Can you explain a bit more what exactly do you want? What do you mean by "a list of widgets"? You can use QAbstractItemView::setIndexWidget() to embed a widget into an item. "Interactiveness" of widgets (widgets or items?) depends only on your implementation.
Re: Custom Listview with all-time editable items
Thanks, I'll try that.
One image is worth thousand words - i need to accomplish something like this mockup:
http://alas.matf.bg.ac.yu/~mr02014/kamion2.jpg
I have the widget that does everything I want, and now I only need to place it in the list... Cheers!
Re: Custom Listview with all-time editable items
Quote:
Originally Posted by ivan.cukic
Thanks, I'll try that.
One image is worth thousand words - i need to accomplish something like this mockup:
http://alas.matf.bg.ac.yu/~mr02014/kamion2.jpg
I have the widget that does everything I want, and now I only need to place it in the list... Cheers!
I think you don't want/need widgets at all. The only widget you need is QListView and a good item model which allows items to be checkable and to change their size. Standard QListView can easily handle that.
Re: Custom Listview with all-time editable items
Re: Custom Listview with all-time editable items
Check out different itemviews examples that come with Qt.