Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
src_gui_graphicsview_qgraphicswidget.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
4
//! [0]
5
void
MyGroupBoxWidget::initStyleOption(QStyleOption *option)
const
6
{
7
QGraphicsWidget::initStyleOption(option);
8
if
(QStyleOptionGroupBox *box = qstyleoption_cast<QStyleOptionGroupBox *>(option)) {
9
// Add group box specific state.
10
box->flat = isFlat();
11
...
12
}
13
}
14
//! [0]
15
16
17
//! [1]
18
setTabOrder
(
a
,
b
);
// a to b
19
setTabOrder
(
b
,
c
);
// a to b to c
20
setTabOrder
(
c
,
d
);
// a to b to c to d
21
//! [1]
22
23
24
//! [2]
25
// WRONG
26
setTabOrder
(
c
,
d
);
// c to d
27
setTabOrder
(
a
,
b
);
// a to b AND c to d
28
setTabOrder
(
b
,
c
);
// a to b to c, but not c to d
29
//! [2]
setTabOrder
setTabOrder(a, b)
[0]
qtbase
src
widgets
doc
snippets
code
src_gui_graphicsview_qgraphicswidget.cpp
Generated on
for Qt by
1.14.0