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]
5void 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]
18setTabOrder(a, b); // a to b
19setTabOrder(b, c); // a to b to c
20setTabOrder(c, d); // a to b to c to d
21//! [1]
22
23
24//! [2]
25// WRONG
26setTabOrder(c, d); // c to d
27setTabOrder(a, b); // a to b AND c to d
28setTabOrder(b, c); // a to b to c, but not c to d
29//! [2]
setTabOrder(a, b)
[0]