I notice that even though a QAction is disabled, shortcut keys will still trigger them. This causes a few segfaults if I don't use extra checks in my code. Is this a bug, or is there an option I missed?
I notice that even though a QAction is disabled, shortcut keys will still trigger them. This causes a few segfaults if I don't use extra checks in my code. Is this a bug, or is there an option I missed?
"The strength of a civilization is not measured by its ability to wage wars, but rather by its ability to prevent them." - Gene Roddenberry
Use QAction::blockSignals( true ) while the actions are disabled.
After that unblock them.
Regards
Michiel (23rd May 2007)
Works for me. Thanks!
I think a disabled action shouldn't send out signals by default, though.
"The strength of a civilization is not measured by its ability to wage wars, but rather by its ability to prevent them." - Gene Roddenberry
Bookmarks