I have a example source code from C++ GUI Programming with Qt 4 book. There is in main class construct:
SortDialog
::SortDialog(QWidget *parent
)
setupUi(this);
secondaryGroupBox->hide();
tertiaryGroupBox->hide();
//layout()->setSizeConstraint(QLayout::SetFixedSize);
setColumnRange('A', 'Z');
}
SortDialog::SortDialog(QWidget *parent)
: QDialog(parent){
setupUi(this);
secondaryGroupBox->hide();
tertiaryGroupBox->hide();
//layout()->setSizeConstraint(QLayout::SetFixedSize);
setColumnRange('A', 'Z');
}
To copy to clipboard, switch view to plain text mode
When I compile this in this form, everything works ok. But if I remove this comment, after compile when I want to run this app, I have segmentation fault.
There is no diffrent if I replace SetFixedSize for e.g. SetMaximumSize or someone else from enum SizeConstraint from QLayout class.
Why isn't it work?
Qt4.3.3
Bookmarks