I have a example source code from C++ GUI Programming with Qt 4 book. There is in main class construct:
Qt Code:
  1. SortDialog::SortDialog(QWidget *parent)
  2. : QDialog(parent){
  3.  
  4. setupUi(this);
  5. secondaryGroupBox->hide();
  6. tertiaryGroupBox->hide();
  7. //layout()->setSizeConstraint(QLayout::SetFixedSize);
  8. setColumnRange('A', 'Z');
  9. }
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