首先定义三个类:
scrollArea = new QScrollArea;
w_scroll = new QWidget(this);
layout = new QGridLayout(this);
然后:
scrollArea->setWidget(w_scroll);
layout->addWidget(scrollArea, 0, 0)
首先定义三个类:
scrollArea = new QScrollArea;
w_scroll = new QWidget(this);
layout = new QGridLayout(this);
然后:
scrollArea->setWidget(w_scroll);
layout->addWidget(scrollArea, 0, 0)