QScrollArea类的使用

首先定义三个类:

 

 scrollArea = new QScrollArea;
    w_scroll = new QWidget(this);
    layout = new QGridLayout(this);

然后:

 scrollArea->setWidget(w_scroll);    
    layout->addWidget(scrollArea, 0, 0)

猜你喜欢

转载自blog.csdn.net/qq_35674193/article/details/79284486