Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

one of the QPushButton in QDialog is always Highlighted



  • Hello,

    i have 20 Qpushbuttons. i tried QPushButton::setDefault(false) and QPushButton::setAutoDefault(false) in every button and even together but in the group button the first Qpushbutton is always highlighted how to fix this.

    i try ui->pushButton35->setFocusPolicy(Qt::NoFocus);
    i try ui->pushButton35->setFocus();
    When the parent, grandparent appear, the first pushbutton is hightlighted

    This is not presentable :> How to resolve


Log in to reply