Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- QVBoxLayout* mainLayout = new QVBoxLayout(this);
- QScrollArea* scroll = new QScrollArea;
- mainLayout->addWidget(scroll);
- QWidget* ScrollAreaWidgetContents = new QWidget(scroll);
- QGridLayout* ScrollLayout = new QGridLayout(ScrollAreaWidgetContents);
- QWidget* widget = new QWidget;
- ScrollLayout ->addWidget(widget);
- QLabel* lbl = new QLabel;
- QFont font;
- font.setPixelSize(24);
- lbl->setFont(font);
- lbl->setText("Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diem nonummy nibh euismod tincidunt ut lacreet dolore magna aliguam erat volutpat.");
- ScrollLayout->addWidget(lbl);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement