In any Qt application in KDE, when I add a QPushButton constructor to the constructor and check its text:
void MainWindow::on_pushButton_clicked() { qDebug()<<ui->pushButton->text(); }
The output signal is preceded by & :
& Pushbutton
This behavior does not exist on Windows. It seems that Qt applications on KDE automatically add shortcuts to all buttons, which is undesirable for me. It should be noted that ampersands are not created by the designer, and you cannot see them in the .ui file. In fact, when a button is added to the widget, & is placed somewhere in the text.
Is it possible to disable automatic Qt application mnemonics in any case?
c ++ qt kde shortcut
Nejat
source share