Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. SetEnabled not working ?
Forum Updated to NodeBB v4.3 + New Features

SetEnabled not working ?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • clogwogC Offline
    clogwogC Offline
    clogwog
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • clogwogC Offline
      clogwogC Offline
      clogwog
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved