C++ (Qt)mainarea = new QFrame();mainarea->setGeometry(5,5,200,200); this->ui->scroll->setWidget(mainarea);
QFrame *panel = new QFrame(); panel->setGeometry(5,5,1000,1000); this->ui->scroll->setWidget(panel);