View Full Version : QSrollArea as centralwidget of QMainWindow
dpatel
7th June 2011, 09:53
Hi,
How can I set QScrollArea as centralwidget in QMainWindow? It would be even better if there is a way to do it with designer.
D.
sergio87
7th June 2011, 12:07
Hi,
I'm not working with the designer. The code is:
centralWidget = new QWidget(this);
centralWidget->setObjectName(tr("centralWidghet"));
scrollArea = new QScrollArea(centralWidget);
scrollArea->setBackgroundRole(QPalette::Dark);
setCentralWidget(centralWidget);
I hope it will be useful :D
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.