How to disable automatic mnemonics in a Qt application on KDE?

后端 未结 1 1797
执笔经年
执笔经年 2020-12-06 12:29

In any Qt application on KDE when I add a QPushButton in designer and check it\'s text by:

void MainWindow::on_pushButton_clicked()
{
    qDebug         


        
相关标签:
1条回答
  • 2020-12-06 13:03

    KDEPlatformTheme plugin responsible for it.

    A workaround is to add

    [Development]
    AutoCheckAccelerators=false
    

    to ~/.config/kdeglobals, which prevents KDE from automatically adding accelerators.

    Related bug: https://bugs.kde.org/show_bug.cgi?id=337491

    0 讨论(0)
提交回复
热议问题