Yes that is what I am going for and thank you for your tip I will try it out.Looks like you want to have somthing like widget property editor, which will change the visual appreance of the widget itself inturn.
Yes that is what I am going for and thank you for your tip I will try it out.Looks like you want to have somthing like widget property editor, which will change the visual appreance of the widget itself inturn.
I have antother question regaring the the QAbstractTableModel. Is it somehow bad to call the reset() to update the view? Because I am changing some data outside the setdata function and then I would like the view to update it self. It does this if I click on it if I dont call reset().
So my question here is there are smarter way to do this? I know about the dataChanged() signal but all it does aswell is call reset() or?
You can use beginResetModel() and endResetModel()
call beginResetModel() before editing the model data and
call endResetModel() after editing the model data (instead of reset)
You can always refer to
Reviving this thread again because I have another Model/View question. Take a look at the attachment for what I am trying to accomplish.
And what I want this view to contain is basically all the items I add to a QGraphicsScene. And trough this view I want to be able to select the items, hide them or remove them.
Basically it is an object list where the objects in the list are linked to the objects in the scene. And thought I would ask here first to see what you recommend for me to use. I have been looking at QListView but don't know. Also I want a context menu for all items in the view so if I right click I get a menu with some actions. So probably I need a custom delegate.
Hopefully you got some advice
Since it has been 3 1/2 years since the question was posted, I doubt whether starting a new thread would be useful.
Bookmarks