PDA

View Full Version : Alt key changes the text of the Qcheckbox showing the shortcut



dablo19
28th October 2011, 12:43
I have a QDialog,
He owns a QCheckBox, put the text describing the short cut to "&"
example:

ui-> myCheckBox-> setText ("Acce&pt");

Run the program and when I click the dialog and then press the key ALT the text of the changes "Accept" to "Acce&pt". Can anyone help me?
QT version 4.7.2.

Spitfire
28th October 2011, 13:49
What OS?

I've never seen such problem.
Try to clear and recompile the project.

Also you could post some code, maybe there's some simple mistake we can spot.