my full cocstructor looks like this
Qt Code:
  1. FrameInfo::FrameInfo(QWidget* parent )
  2. :QGroupBox(parent)
  3. {
  4. //ctor
  5. frame = new QFrame (this);
  6. scroll = new QScrollArea(this);
  7. scroll->setWidget(frame);
  8.  
  9. mainLayout = new QVBoxLayout(this);
  10. frame->setLayout(mainLayout);
  11. mainLayout->addStretch();
  12.  
  13. QVBoxLayout * topLayout = new QVBoxLayout (this);
  14. topLayout->addWidget(frame);
  15.  
  16. setLayout(topLayout);
  17. }
To copy to clipboard, switch view to plain text mode