Details
-
Sub-task
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
None
-
None
-
Shovelling Snow, Q1/2020 Finale, Q2/2020 kick off, 6.2 Features
Description
- TabBar
- ToolButton (Button with menu)
- ToolSeparator
TabBar
#include <QtWidgets> int main(int argc, char *argv[]) { QApplication app(argc, argv); QMainWindow mainWindow; QWidget *centralWidget = new QWidget; auto *tabBar = new QTabBar(centralWidget); tabBar->addTab("Tab 1"); tabBar->addTab("Tab 2"); tabBar->addTab("Tab 3"); mainWindow.setCentralWidget(centralWidget); mainWindow.resize(400, 400); mainWindow.show(); return app.exec(); }
ToolBar
#include <QtWidgets> int main(int argc, char *argv[]) { QApplication app(argc, argv); QMainWindow mainWindow; auto *toolBar = new QToolBar; toolBar->addAction("ToolButton 1"); toolBar->addAction("ToolButton 2"); toolBar->addAction("ToolButton 3"); mainWindow.addToolBar(toolBar); mainWindow.resize(400, 400); mainWindow.show(); return app.exec(); }
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-115164 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
490744,5 | WIP: Add TabButton to Windows style | dev | qt/qtdeclarative | Status: NEW | -2 | 0 |
491160,4 | WIP: Add ToolButton to Windows and mac style | dev | qt/qtdeclarative | Status: NEW | -2 | 0 |