Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
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
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent