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.
mUi.groupBoxSignalSettingsSmoothingRotationZ->setEnabled(true);
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:
@ui->arbol->setDisabled(1);
ui->frameDerecha->setDisabled(1);@
And after I enable them this way:
@ui->arbol->setEnabled(1);
ui->frameDerecha->setEnabled(1);@Regards.