Qt
6.x
The Qt SDK
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Symbols
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
5
MainWindow::MainWindow
(
QWidget
*
parent
)
6
:
QMainWindow
(
parent
)
7
{
9
10
12
fileToolbar->setAllowedAreas(
Qt::TopToolBarArea
|
Qt::BottomToolBarArea
);
13
addToolBar(
Qt::TopToolBarArea
, fileToolbar);
15
16
18
setCorner(
Qt::TopLeftCorner
,
Qt::LeftDockWidgetArea
);
19
setCorner(
Qt::BottomLeftCorner
,
Qt::LeftDockWidgetArea
);
20
setCorner(
Qt::TopRightCorner
,
Qt::RightDockWidgetArea
);
21
setCorner(
Qt::BottomRightCorner
,
Qt::RightDockWidgetArea
);
23
24
26
QWidget
*centralWidget =
new
QWidget
(
this
);
27
setCentralWidget(centralWidget);
MainWindow::MainWindow
MainWindow()
[17]
Definition
src_corelib_kernel_qobject.cpp:63
QMainWindow
The QMainWindow class provides a main application window.
Definition
qmainwindow.h:25
QWidget
The QWidget class is the base class of all user interface objects.
Definition
qwidget.h:99
Qt::BottomLeftCorner
@ BottomLeftCorner
Definition
qnamespace.h:1264
Qt::TopRightCorner
@ TopRightCorner
Definition
qnamespace.h:1263
Qt::TopLeftCorner
@ TopLeftCorner
Definition
qnamespace.h:1262
Qt::BottomRightCorner
@ BottomRightCorner
Definition
qnamespace.h:1265
Qt::RightDockWidgetArea
@ RightDockWidgetArea
Definition
qnamespace.h:1193
Qt::LeftDockWidgetArea
@ LeftDockWidgetArea
Definition
qnamespace.h:1192
Qt::BottomToolBarArea
@ BottomToolBarArea
Definition
qnamespace.h:1212
Qt::TopToolBarArea
@ TopToolBarArea
Definition
qnamespace.h:1211
parent
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent
Definition
uiaclientinterfaces_p.h:209
qtbase
src
widgets
doc
snippets
code
doc_src_qt4-mainwindow.cpp
Generated by
1.9.7