PyQt4 : Can I intercept the currentIndexChanged signal of QComboBox?
-
29-10-2019 - |
문제
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.
올바른 솔루션이 없습니다
제휴하지 않습니다 StackOverflow