Enabling an initially disabled QWidget

  • Hi,

    this might be a very basic question but it drives me nuts and I can't find any useful information.

    I have three QGroupBox objects which are not enabled in the Qt designer (disabled at application startup). This is intended since i want to enable them at runtime.


    This call during app runtime to enable these Widgets does not actually enable them, they remain grayed out and disabled.

    Here comes the best part, when I enable these 3 widgets in the designer and disable them during runtime things work normally. The widgets enable and disable as intended.

    What am I missing here?
    Thx for your help.

  • Hi!!
    My last project worked similar, but I disabled the widgets in constructor and enabled them after and works perfect.
    My code in constructor is:
    And after I enable them this way:


Log in to reply

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