#include <QScrollArea> private: QWidget* wi; QPushButton* La_yellow; QPushButton* La_green; QScrollArea* H; ////////////////////// wi=new QWidget; wi->resize((row-1)*60+400,(co-1)*60+400); wi->setFixedSize((row-1)*60+400,(co-1)*60+400); setCentralWidget(wi); La_yellow->move((row-1)*60+400-220,(co-1)*60+400-80); La_green->move((row-1)*60+400-220,(co-1)*60+400-10); La_yellow->setParent(wi); La_green->setParent(wi); H=new QScrollArea(); H->setWidget(wi); H->raise(); H->show();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)