C++ (Qt)int DlgOptions::my_execute() if (ui->btnShowAdditionalInfo->isChecked()) { ui->btnShowAdditionalInfo->setChecked(false); ui->groupBox->setVisible(false); resize(width(), sizeHint().height()); } return exec();}
C++ (Qt)int DlgOptions::my_execute(){ ui->groupBox->setVisible(false); qDebug() << size(); // QSize(320, 342) resize(width(), sizeHint().height()); qDebug() << size(); // QSize(320, 342) adjustSize(); // This function uses sizeHint() if it is valid. qDebug() << size(); // QSize(320, 172) return exec();}
primaryGroupBox->setMinimumWidth(tertiaryGroupBox->sizeHint().width());