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_widgets_qdockwidget.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
QDockWidget
*
dockWidget
= qobject_cast<QDockWidget*>(parentWidget());
6
if
(dockWidget->features() & QDockWidget::DockWidgetVerticalTitleBar) {
7
// I need to be vertical
8
}
else
{
9
// I need to be horizontal
10
}
11
//! [0]
dockWidget
QDockWidget * dockWidget
[0]
Definition
src_gui_widgets_qdockwidget.cpp:5
qtbase
src
widgets
doc
snippets
code
src_gui_widgets_qdockwidget.cpp
Generated on
for Qt by
1.14.0