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 <<");" ;
    QApplication::processEvents();
    qDebug() << "pb is enabled: " << ui->pb_1->isEnabled();@

    output:

    @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
 

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