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
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.