Qt
6.x
The Qt SDK
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
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
}
QDockWidget
The QDockWidget class provides a widget that can be docked inside a QMainWindow or floated as a top-l...
Definition
qdockwidget.h:20
QDockWidget::DockWidgetVerticalTitleBar
@ DockWidgetVerticalTitleBar
Definition
qdockwidget.h:42
QDockWidget::features
DockWidgetFeatures features
whether the dock widget is movable, closable, and floatable
Definition
qdockwidget.h:24
dockWidget
QDockWidget * dockWidget
[0]
Definition
src_gui_widgets_qdockwidget.cpp:5
qtbase
src
widgets
doc
snippets
code
src_gui_widgets_qdockwidget.cpp
Generated by
1.9.7