KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
qtwidgets/views/FloatingWindow.h
Go to the documentation of this file.
1/*
2 This file is part of KDDockWidgets.
3
4 SPDX-FileCopyrightText: 2019 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
5 Author: SĂ©rgio Martins <sergio.martins@kdab.com>
6
7 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
8
9 Contact KDAB at <info@kdab.com> for commercial licensing options.
10*/
11
12#ifndef KD_FLOATINGWINDOW_QTWIDGETS_H
13#define KD_FLOATINGWINDOW_QTWIDGETS_H
14
15#pragma once
16
17#include "View.h"
18
19QT_BEGIN_NAMESPACE
20class QVBoxLayout;
21class QMainWindow;
22QT_END_NAMESPACE
23
24namespace KDDockWidgets::Core {
25class FloatingWindow;
26class Group;
27}
28
30
31
32class DOCKS_EXPORT FloatingWindow : public View<QWidget>
33{
34 Q_OBJECT
35public:
36 explicit FloatingWindow(Core::FloatingWindow *controller,
37 QMainWindow *parent = nullptr,
38 Qt::WindowFlags windowFlags = {});
39
40 ~FloatingWindow() override;
41
42 Core::FloatingWindow *floatingWindow() const;
43
44protected:
45 void paintEvent(QPaintEvent *) override;
46 bool event(QEvent *ev) override;
47 bool eventFilter(QObject *o, QEvent *ev) override;
48 void init() override final;
49#if defined(Q_OS_WIN)
50 bool nativeEvent(const QByteArray &eventType, void *message,
51 Qt5Qt6Compat::qintptr *result) override;
52#endif
53
54Q_SIGNALS:
56
57private:
58 class Private;
59 Private *const d;
60
61 void updateMargins();
62 Q_DISABLE_COPY(FloatingWindow)
63};
64
65}
66
67#endif
typedef WindowFlags

© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDDockWidgets
Advanced Dock Widget Framework for Qt
https://www.kdab.com/development-resources/qt-tools/kddockwidgets/
Generated by doxygen 1.9.8