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
doc_src_qt4-mainwindow.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
6 : QMainWindow(parent)
7{
9
10
12fileToolbar->setAllowedAreas(Qt::TopToolBarArea | Qt::BottomToolBarArea);
13addToolBar(Qt::TopToolBarArea, fileToolbar);
15
16
23
24
26QWidget *centralWidget = new QWidget(this);
27setCentralWidget(centralWidget);
The QMainWindow class provides a main application window.
Definition qmainwindow.h:25
The QWidget class is the base class of all user interface objects.
Definition qwidget.h:99
@ BottomLeftCorner
@ TopRightCorner
@ TopLeftCorner
@ BottomRightCorner
@ RightDockWidgetArea
@ LeftDockWidgetArea
@ BottomToolBarArea
@ TopToolBarArea