Hi,

I'm not seeing my widget window when I'm trying put it into a QScrollArea with QFrame.

I designed a gui (MyWidget) using designer.

I placed all the buttons of my gui inside of a QFrame (like Wysota suggested in another thread), and then promoted the QFrame to QScrollArea and called it scrollFrame.

So in my code, my constructor looks like this:

Qt Code:
  1. MyWidget::MyWidget (QWidget *parent, Qt::WFlags flags)
  2. : QWidget(parent, flags)
  3. {
  4. ui.setupUi(this);
  5. ui.scrollFrame->setWidget(this);
  6. }
To copy to clipboard, switch view to plain text mode 

My main looks like this:
Qt Code:
  1. int main(int argc, char *argv[])
  2. {
  3. QApplication a(argc, argv);
  4. MyWidget w;
  5. w.show();
  6.  
  7. return a.exec();
  8. }
To copy to clipboard, switch view to plain text mode 

However nothing shows up when I try to run this. Can somebody please help me figure out how to bring up the scrollbars?

Thank you.