Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquickpopupwindow_p_p.h
Go to the documentation of this file.
1// Copyright (C) 2024 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 QQUICKPOPUPWINDOW_P_P_H
5#define QQUICKPOPUPWINDOW_P_P_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 <QtQuick/private/qquickwindowmodule_p.h>
19#include <QtQuickTemplates2/private/qtquicktemplates2global_p.h>
20
22
23class QQuickPopup;
25
26class Q_QUICKTEMPLATES2_EXPORT QQuickPopupWindow : public QQuickWindowQmlImpl
27{
30
31public:
32 explicit QQuickPopupWindow(QQuickPopup *popup, QWindow *parent = nullptr);
34 QQuickPopup *popup() const;
35
36protected:
37 void hideEvent(QHideEvent *e) override;
38 void moveEvent(QMoveEvent *e) override;
39 void resizeEvent(QResizeEvent *e) override;
40 bool event(QEvent *e) override;
41
42private:
43 void windowChanged(QWindow *window);
44 QPoint global2Local(const QPoint& pos) const;
45 void parentWindowXChanged(int newX);
46 void parentWindowYChanged(int newY);
47 void handlePopupPositionChangeFromWindowSystem(const QPoint &pos);
48 void implicitWidthChanged();
49 void implicitHeightChanged();
50
51 Q_DISABLE_COPY(QQuickPopupWindow)
52 Q_DECLARE_PRIVATE(QQuickPopupWindow)
53};
54
56
57#endif // QQUICKPOPUPWINDOW_P_P_H
\inmodule QtCore
Definition qcoreevent.h:45
The QHideEvent class provides an event which is sent after a widget is hidden.
Definition qevent.h:586
The QMoveEvent class contains event parameters for move events.
Definition qevent.h:502
\inmodule QtCore\reentrant
Definition qpoint.h:25
The QResizeEvent class contains event parameters for resize events.
Definition qevent.h:548
\inmodule QtGui
Definition qwindow.h:63
Combined button and popup list for selecting options.
struct _cl_event * event
#define QML_ANONYMOUS
#define Q_OBJECT
aWidget window() -> setWindowTitle("New Window Title")
[2]