Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qgraphicsproxywidget_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 QGRAPHICSPROXYWIDGET_P_H
5#define QGRAPHICSPROXYWIDGET_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 for the convenience
12// of other Qt classes. 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>
20#include "private/qgraphicswidget_p.h"
21
22QT_REQUIRE_CONFIG(graphicsview);
23
25
27{
28 Q_DECLARE_PUBLIC(QGraphicsProxyWidget)
29public:
32
33 void init();
34 void sendWidgetMouseEvent(QGraphicsSceneMouseEvent *event);
35 void sendWidgetMouseEvent(QGraphicsSceneHoverEvent *event);
36 void sendWidgetKeyEvent(QKeyEvent *event);
37 void setWidget_helper(QWidget *widget, bool autoShow);
38
39 QWidget *findFocusChild(QWidget *child, bool next) const;
40 void removeSubFocusHelper(QWidget *widget, Qt::FocusReason reason);
41
42 void _q_removeWidgetSlot();
43
44 void embedSubWindow(QWidget *);
45 void unembedSubWindow(QWidget *);
46
47 bool isProxyWidget() const override;
48
54
55 void updateWidgetGeometryFromProxy();
56 void updateProxyGeometryFromWidget();
57
58 void updateProxyInputMethodAcceptanceFromWidget();
59
60 QPointF mapToReceiver(const QPointF &pos, const QWidget *receiver) const;
61
65 WidgetToProxyMode
66 };
76};
77
79
80#endif
virtual bool isProxyWidget() const
QPointer< QWidget > embeddedMouseGrabber
QPointer< QWidget > lastWidgetUnderMouse
The QGraphicsProxyWidget class provides a proxy layer for embedding a QWidget in a QGraphicsScene.
The QGraphicsSceneHoverEvent class provides hover events in the graphics view framework.
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
void init(QGraphicsItem *parentItem, Qt::WindowFlags wFlags)
The QKeyEvent class describes a key event.
Definition qevent.h:423
\inmodule QtCore\reentrant
Definition qpoint.h:214
\inmodule QtCore
Definition qpointer.h:18
The QWidget class is the base class of all user interface objects.
Definition qwidget.h:99
QOpenGLWidget * widget
[1]
short next
Definition keywords.cpp:445
Combined button and popup list for selecting options.
DropAction
FocusReason
struct _cl_event * event
#define Q_AUTOTEST_EXPORT
#define QT_REQUIRE_CONFIG(feature)
unsigned int quint32
Definition qtypes.h:45
QLayoutItem * child
[0]