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
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
22#include <QtCore/qpointer.h>
23
24QT_REQUIRE_CONFIG(graphicsview);
25
27
29{
30 Q_DECLARE_PUBLIC(QGraphicsProxyWidget)
31public:
34
35 void init();
36 void sendWidgetMouseEvent(QGraphicsSceneMouseEvent *event);
37 void sendWidgetMouseEvent(QGraphicsSceneHoverEvent *event);
38 void sendWidgetKeyEvent(QKeyEvent *event);
39 void setWidget_helper(QWidget *widget, bool autoShow);
40
41 QWidget *findFocusChild(QWidget *child, bool next) const;
42 void removeSubFocusHelper(QWidget *widget, Qt::FocusReason reason);
43
44 void _q_removeWidgetSlot();
45
46 void embedSubWindow(QWidget *);
47 void unembedSubWindow(QWidget *);
48
49 bool isProxyWidget() const override;
50
51 QPointer<QWidget> widget;
52 QPointer<QWidget> lastWidgetUnderMouse;
53 QPointer<QWidget> embeddedMouseGrabber;
56
57 void updateWidgetGeometryFromProxy();
58 void updateProxyGeometryFromWidget();
59
60 void updateProxyInputMethodAcceptanceFromWidget();
61
62 QPointF mapToReceiver(const QPointF &pos, const QWidget *receiver) const;
63
67 WidgetToProxyMode
68 };
78};
79
81
82#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:424
\inmodule QtCore\reentrant
Definition qpoint.h:217
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:50
QLayoutItem * child
[0]