Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.2.1
-
None
-
Ubuntu 14.04.1 LTS, KDE 4.13.3
Description
Assume a dialog with a QDialogButtonBox on it.
The dialog button box' reject() and accept() signals are connected to the respective slots of the dialog.
Then, changing the standard buttons of the dialog button box via setStandardButtons() from a slot that is connected to the dialog button box' clicked() slot randomly triggers reject and/or accept signals.
In the attached example, clicking on the 'Reset' button sometimes closes the dialog, which should obviously not happen. Sometimes means, this may happen at the first click or after clicking wildly. Sometimes it also does not happen at all, but after restarting the example it may happen again. Supposedly there is some non-deterministic influence, maybe the order that events are processed.
Attachments
Issue Links
- relates to
-
QTBUG-45835 Segfault in QDialogButtonBoxPrivate::_q_handleButtonClicked
- Closed