Unsolved QDialogButtonBox Signal for Close not triggering
-
Hi!
When i drag and drop a QDialogButtonBox widget into my form I can connect the signal and slots successfuly OK | Cancel by default work fine.Now, i want to change this two into just one called Close (<OK & Cancel> to <Close>).
The problem is that i have tried accepted and clicked signal with no result, it does nothing when click, tried qDebuging and console output prints nothing too...What is the signal for Close button?
Thanks!
-
The Close button has RejectRole as default: https://doc.qt.io/archives/qt-4.8/qdialogbuttonbox.html#StandardButton-enum so I would expect that rejected() is emitted.
-
Ok, i was confussed since Close will save changes, rejected is gramatically not the best name for me but it is ok!
Thanks!