Important: Please read the Qt Code of Conduct -

SetEnabled not working ?

  • I am seeing a very weird problem with a normal QPushbutton

    @ ui->pb_1->setEnabled(enable);
    qDebug() << "ui->pb_1->setEnabled(" << enable <<");" ;
    qDebug() << "pb is enabled: " << ui->pb_1->isEnabled();@


    @ui->pb_1->setEnabled( true );
    pb is enabled: false @

    pb_1 is generated by a .ui form

    where could i be looking first ?
    i have other forms where this works without a problem.

  • please ignore, i'm not sure what has changed but it started working again.
    i have no explanation on why it did, but i won't bother anyone else with it, seeing it is not reproducible.

Log in to reply