Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
src_widgets_widgets_qmainwindow.cpp
Go to the documentation of this file.
1// Copyright (C) 2018 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
5 void MainWindow::createMenus()
6 {
7 fileMenu = menuBar()->addMenu(tr("&File"));
8 fileMenu->addAction(newAct);
9 fileMenu->addAction(openAct);
10 fileMenu->addAction(saveAct);
12
14 void MainWindow::createToolBars()
15 {
16 fileToolBar = addToolBar(tr("File"));
17 fileToolBar->addAction(newAct);
19
21 resizeDocks({blueWidget, yellowWidget}, {20 , 40}, Qt::Horizontal);
QAction * newAct
Definition whatsthis.cpp:11
QAction * addMenu(QMenu *menu)
Appends menu to the menu bar.
Definition qmenubar.cpp:768
@ Horizontal
Definition qnamespace.h:99
#define tr(X)
QMenuBar * menuBar
[0]