c++ - How to disable automatic mnemonics in a Qt application on KDE? -
in qt application on kde when add qpushbutton in designer , check it's text by:
void mainwindow::on_pushbutton_clicked() { qdebug()<<ui->pushbutton->text(); } the output preceded & :
&pushbutton
this behavior not exist on windows. seems qt applications on kde automatically add shortcuts push buttons, not desired me. should note ampersands not created designer , can not see them in the.ui file. when button added widget, & placed somewhere in it's text.
is possible disable automatic mnemonics of qt application in anyway?
kdeplatformtheme plugin responsible it.
a workaround add
[development] autocheckaccelerators=false to ~/.config/kdeglobals, prevents kde automatically adding accelerators.
related bug: https://bugs.kde.org/show_bug.cgi?id=337491
Comments
Post a Comment