Question

I build up a UI consisted of QComboBox and QGraphicsScene and it's QGraphicsItems.

When I change the index of QComboBox, refresh QGraphicsScene so it set to default. To solve it, I store a geometry info to a node. It works well.

At this time, I want to determine that QGraphicsItems are modified, and their geo-infos are not stored. So, UI notice to user that he or she have to store them.

I want that it happens when change QComboBox, and to do that I have to intercept the currentIndexChanged signal. It means that before QComboBox change the index actually, it read the flag and do something to user, and not to miss the geo-infos QComboBox return to previous index.

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top