Hi, i have a problem with scroll area...

i need some widget with some components and put it all into scroll area. But when i write:
Qt Code:
  1. ui->scrollarea->setWidget(QLabel);
To copy to clipboard, switch view to plain text mode 
and QLabel size is bigger then scroll area, everything works.

when i write:
Qt Code:
  1. ui->scrollarea->setWidget(QWidget);
To copy to clipboard, switch view to plain text mode 
it does not work !.. i can not see scrool bar..

i try: Widget, frame, layout, ... but it works only with QLabel.