View Full Version : How to make tab widget such as in eg. Konqueror?
adam.ros
3rd January 2011, 18:06
Hi. I'm new in QT4. Can somebody tell me, how to make simple tab widget such as in eg. Konqueror, Arora, Firefox? Please help me:)
ps. I'm using QtCreator 2.0.1 and QT4 on Linux 32bit.
thanks in advance
Adam
nroberts
3rd January 2011, 18:10
Hi. I'm new in QT4. Can somebody tell me, how to make simple tab widget such as in eg. Konqueror, Arora, Firefox? Please help me:)
ps. I'm using QtCreator 2.0.1 and QT4 on Linux 32bit.
thanks in advance
Adam
Is there some reason that QTabWidget doesn't suffice?
adam.ros
3rd January 2011, 19:27
I've inserted QWebView as widget in addTab():
tabWidget = new QTabWidget();
tabWidget->setEnabled(true);
tabWidget->setVisible(true);
webView = new QWebView();
webView->setEnabled(true);
setCentralWidget(tabWidget);
tabWidget->addTab(webView, "New");
When I started application, the webView widget was grey or invisible, why? Is this OK?
But if I load web page:
webView->load(QUrl("http://www.google.com/"));
webView widget is visible, and i can see this website.
Anyway, thank you nroberts for help:D
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.