Hi
i need the effect im getting from the setCentralWidget that is widget that is attached to the adge of the main window ,this is the look im looking for and can't get it via the designer .
here is my set up how can i change it ?
MainWindow->resize(339, 297);
centralwidget
= new QWidget(MainWindow
);
centralwidget
->setMaximumSize
(QSize(16777214,
16777215));
verticalLayout
->setObjectName
(QString::fromUtf8("verticalLayout"));
stackedWidget
->setObjectName
(QString::fromUtf8("stackedWidget"));
page
->setObjectName
(QString::fromUtf8("page"));
verticalLayout_2
->setObjectName
(QString::fromUtf8("verticalLayout_2"));
webView = new QWebView(page);
webView
->setObjectName
(QString::fromUtf8("webView"));
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(webView->sizePolicy().hasHeightForWidth());
webView->setSizePolicy(sizePolicy);
webView->setAutoFillBackground(true);
webView
->setUrl
(QUrl("about:blank"));
verticalLayout_2->addWidget(webView);
stackedWidget->addWidget(page);
page_2
->setObjectName
(QString::fromUtf8("page_2"));
verticalLayout_3
->setObjectName
(QString::fromUtf8("verticalLayout_3"));
treeView
->setObjectName
(QString::fromUtf8("treeView"));
treeView->setAlternatingRowColors(true);
treeView->setRootIsDecorated(false);
verticalLayout_3->addWidget(treeView);
stackedWidget->addWidget(page_2);
verticalLayout->addWidget(stackedWidget);
MainWindow->setCentralWidget(centralwidget);
MainWindow->setMenuBar(menubar);
statusbar
->setObjectName
(QString::fromUtf8("statusbar"));
MainWindow->setStatusBar(statusbar);
retranslateUi(MainWindow);
stackedWidget->setCurrentIndex(0);
MainWindow->resize(339, 297);
centralwidget = new QWidget(MainWindow);
centralwidget->setMaximumSize(QSize(16777214, 16777215));
verticalLayout = new QVBoxLayout(centralwidget);
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
stackedWidget = new QStackedWidget(centralwidget);
stackedWidget->setObjectName(QString::fromUtf8("stackedWidget"));
page = new QWidget();
page->setObjectName(QString::fromUtf8("page"));
verticalLayout_2 = new QVBoxLayout(page);
verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
webView = new QWebView(page);
webView->setObjectName(QString::fromUtf8("webView"));
QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(webView->sizePolicy().hasHeightForWidth());
webView->setSizePolicy(sizePolicy);
webView->setAutoFillBackground(true);
webView->setUrl(QUrl("about:blank"));
verticalLayout_2->addWidget(webView);
stackedWidget->addWidget(page);
page_2 = new QWidget();
page_2->setObjectName(QString::fromUtf8("page_2"));
verticalLayout_3 = new QVBoxLayout(page_2);
verticalLayout_3->setObjectName(QString::fromUtf8("verticalLayout_3"));
treeView = new QTreeView(page_2);
treeView->setObjectName(QString::fromUtf8("treeView"));
treeView->setAlternatingRowColors(true);
treeView->setRootIsDecorated(false);
verticalLayout_3->addWidget(treeView);
stackedWidget->addWidget(page_2);
verticalLayout->addWidget(stackedWidget);
MainWindow->setCentralWidget(centralwidget);
menubar = new QMenuBar(MainWindow);
MainWindow->setMenuBar(menubar);
statusbar = new QStatusBar(MainWindow);
statusbar->setObjectName(QString::fromUtf8("statusbar"));
MainWindow->setStatusBar(statusbar);
retranslateUi(MainWindow);
stackedWidget->setCurrentIndex(0);
To copy to clipboard, switch view to plain text mode
Bookmarks