4#ifndef QGRAPHICSVIEW_P_H
5#define QGRAPHICSVIEW_P_H
18#include <QtWidgets/private/qtwidgetsglobal_p.h>
21#include <QtGui/private/qevent_p.h>
22#include <QtCore/qcoreapplication.h>
24#include <QtWidgets/qstyleoption.h>
25#include <private/qabstractscrollarea_p.h>
26#include <private/qapplication_p.h>
39 void recalculateContentSize();
63 void updateLastCenterPoint();
65 qint64 horizontalScroll()
const;
66 qint64 verticalScroll()
const;
84 bool canStartScrollingAt(
const QPoint &startPos)
const override;
91 void replayLastMouseEvent();
103 bool stereoEnabled =
false;
106#if QT_CONFIG(rubberband)
107 QRect rubberBandRect;
110 void clearRubberBand();
132 void _q_unsetViewportCursor();
144 void processPendingUpdates();
148 fullUpdatePending =
true;
149 dirtyBoundingRect =
QRect();
168 return updateRect(
rect.toAlignedRect().adjusted(-1, -1, 1, 1));
169 return updateRect(
rect.toAlignedRect().adjusted(-2, -2, 2, 2));
183 void updateInputMethodSensitivity();
static void sendPostedEvents(QObject *receiver=nullptr, int event_type=0)
Immediately dispatches all events which have been previously queued with QCoreApplication::postEvent(...
The QCursor class provides a mouse cursor with an arbitrary shape.
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
The QGraphicsSceneDragDropEvent class provides events for drag and drop in the graphics view framewor...
QPointF mousePressScenePoint
QMutableSinglePointEvent lastMouseEvent
quint32 useLastMouseEvent
bool hasStoredOriginalCursor
quint32 mustAllocateStyleOptions
QPointer< QGraphicsScene > scene
QGraphicsView::DragMode dragMode
quint32 accelerateScrolling
quint32 keepLastCenterPoint
quint32 sceneInteractionAllowed
QPoint mousePressScreenPoint
bool updateRectF(const QRectF &rect)
quint32 mustResizeBackgroundPixmap
QGraphicsView::ViewportUpdateMode viewportUpdateMode
QGraphicsView::OptimizationFlags optimizationFlags
QGraphicsView::ViewportAnchor resizeAnchor
QList< QStyleOptionGraphicsItem > styleOptions
bool updateSceneSlotReimplementedChecked
QGraphicsView::ViewportAnchor transformationAnchor
void dispatchPendingUpdateRequests()
quint32 fullUpdatePending
QGraphicsSceneDragDropEvent * lastDragDropEvent
QPoint mousePressViewPoint
QRegion backgroundPixmapExposed
QPoint lastMouseMoveScreenPoint
QPointF lastMouseMoveScenePoint
QPointF lastRubberbandScenePoint
QPainter::RenderHints renderHints
Qt::MouseButton mousePressButton
QPointF mousePressItemPoint
QGraphicsView::CacheMode cacheMode
The QGraphicsView class provides a widget for displaying the contents of a QGraphicsScene.
ViewportAnchor
This enums describe the possible anchors that QGraphicsView can use when the user resizes the view or...
DragMode
This enum describes the default action for the view when pressing and dragging the mouse over the vie...
@ DontAdjustForAntialiasing
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
The QRegion class specifies a clip region for a painter.
The QStyleOptionGraphicsItem class is used to describe the parameters needed to draw a QGraphicsItem.
The QTouchEvent class contains parameters that describe a touch event.
Combined button and popup list for selecting options.
GLsizei GLsizei GLchar * source
#define QT_REQUIRE_CONFIG(feature)
view viewport() -> scroll(dx, dy, deviceRect)