Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qwindowcontainer_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QWINDOWCONTAINER_H
5#define QWINDOWCONTAINER_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtWidgets/private/qtwidgetsglobal_p.h>
19#include <QtWidgets/qwidget.h>
20
22
24
25class Q_WIDGETS_EXPORT QWindowContainer : public QWidget
26{
28 Q_DECLARE_PRIVATE(QWindowContainer)
29
30public:
31 explicit QWindowContainer(QWindow *embeddedWindow, QWidget *parent = nullptr, Qt::WindowFlags f = { });
33 QWindow *containedWindow() const;
34
35 static void toplevelAboutToBeDestroyed(QWidget *parent);
36 static void parentWasChanged(QWidget *parent);
37 static void parentWasMoved(QWidget *parent);
38 static void parentWasRaised(QWidget *parent);
39 static void parentWasLowered(QWidget *parent);
40
41protected:
42 bool event(QEvent *ev) override;
43 bool eventFilter(QObject *, QEvent *ev) override;
44
45private slots:
46 void focusWindowChanged(QWindow *focusWindow);
47};
48
50
51#endif // QWINDOWCONTAINER_H
\inmodule QtCore
Definition qcoreevent.h:45
\inmodule QtCore
Definition qobject.h:90
virtual bool eventFilter(QObject *watched, QEvent *event)
Filters events if this object has been installed as an event filter for the watched object.
Definition qobject.cpp:1518
The QWidget class is the base class of all user interface objects.
Definition qwidget.h:99
\inmodule QtGui
Definition qwindow.h:63
Combined button and popup list for selecting options.
GLfloat GLfloat f
struct _cl_event * event
#define Q_OBJECT
#define slots
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent