40 #ifndef QGRAPHICSSCENE_H
41 #define QGRAPHICSSCENE_H
43 #include <QtWidgets/qtwidgetsglobal.h>
44 #include <QtCore/qobject.h>
45 #include <QtCore/qpoint.h>
46 #include <QtCore/qrect.h>
47 #include <QtGui/qbrush.h>
48 #include <QtGui/qfont.h>
49 #include <QtGui/qtransform.h>
50 #include <QtGui/qpen.h>
98 Q_PROPERTY(
QBrush foregroundBrush READ foregroundBrush WRITE setForegroundBrush)
101 Q_PROPERTY(
int bspTreeDepth READ bspTreeDepth WRITE setBspTreeDepth)
104 Q_PROPERTY(
bool stickyFocus READ stickyFocus WRITE setStickyFocus)
105 Q_PROPERTY(
qreal minimumRenderSize READ minimumRenderSize WRITE setMinimumRenderSize)
106 Q_PROPERTY(
bool focusOnTouch READ focusOnTouch WRITE setFocusOnTouch)
116 BackgroundLayer = 0x2,
117 ForegroundLayer = 0x4,
138 ItemIndexMethod itemIndexMethod()
const;
139 void setItemIndexMethod(ItemIndexMethod
method);
141 int bspTreeDepth()
const;
142 void setBspTreeDepth(
int depth);
144 QRectF itemsBoundingRect()
const;
189 bool hasFocus()
const;
193 void setStickyFocus(
bool enabled);
194 bool stickyFocus()
const;
198 QBrush backgroundBrush()
const;
201 QBrush foregroundBrush()
const;
230 qreal minimumRenderSize()
const;
231 void setMinimumRenderSize(
qreal minSize);
233 bool focusOnTouch()
const;
234 void setFocusOnTouch(
bool enabled);
240 void clearSelection();
271 virtual bool focusNextPrevChild(
bool next);
298 friend class QGraphicsItemEffectSourcePrivate;
299 #ifndef QT_NO_GESTURES
The QBrush class defines the fill pattern of shapes drawn by QPainter.
The QEvent class is the base class of all event classes. Event objects contain event parameters.
The QFocusEvent class contains event parameters for widget focus events. \inmodule QtGui.
The QFont class specifies a query for a font used for drawing text.
The QFontMetrics class provides font metrics information.
The QGesture class represents a gesture, containing properties that describe the corresponding user i...
The QGraphicsEffect class is the base class for all graphics effects.
The QGraphicsEllipseItem class provides an ellipse item that you can add to a QGraphicsScene.
The QGraphicsItemGroup class provides a container that treats a group of items as a single item.
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
The QGraphicsLineItem class provides a line item that you can add to a QGraphicsScene.
The QGraphicsObject class provides a base class for all graphics items that require signals,...
The QGraphicsPixmapItem class provides a pixmap item that you can add to a QGraphicsScene.
The QGraphicsPolygonItem class provides a polygon item that you can add to a QGraphicsScene.
The QGraphicsRectItem class provides a rectangle item that you can add to a QGraphicsScene.
The QGraphicsSceneBspTreeIndex class provides an implementation of a BSP indexing algorithm for disco...
The QGraphicsSceneDragDropEvent class provides events for drag and drop in the graphics view framewor...
The QGraphicsSceneEvent class provides a base class for all graphics view related events.
The QGraphicsSceneHelpEvent class provides events when a tooltip is requested.
The QGraphicsSceneHoverEvent class provides hover events in the graphics view framework.
The QGraphicsScene class provides a surface for managing a large number of 2D graphical items.
QGraphicsEllipseItem * addEllipse(qreal x, qreal y, qreal w, qreal h, const QPen &pen=QPen(), const QBrush &brush=QBrush())
void changed(const QList< QRectF > ®ion)
void setSceneRect(qreal x, qreal y, qreal w, qreal h)
QList< QGraphicsItem * > items(qreal x, qreal y, qreal w, qreal h, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform &deviceTransform=QTransform()) const
Returns all visible items that, depending on mode, are either inside or intersect with the rectangle ...
void invalidate(qreal x, qreal y, qreal w, qreal h, SceneLayers layers=AllLayers)
void update(qreal x, qreal y, qreal w, qreal h)
void sceneRectChanged(const QRectF &rect)
void focusItemChanged(QGraphicsItem *newFocus, QGraphicsItem *oldFocus, Qt::FocusReason reason)
QGraphicsItem * itemAt(qreal x, qreal y, const QTransform &deviceTransform) const
QGraphicsRectItem * addRect(qreal x, qreal y, qreal w, qreal h, const QPen &pen=QPen(), const QBrush &brush=QBrush())
QGraphicsLineItem * addLine(qreal x1, qreal y1, qreal x2, qreal y2, const QPen &pen=QPen())
The QGraphicsSceneIndex class provides a base class to implement a custom indexing algorithm for disc...
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
The QGraphicsSceneWheelEvent class provides wheel events in the graphics view framework.
The QGraphicsSimpleTextItem class provides a simple text path item that you can add to a QGraphicsSce...
The QGraphicsTextItem class provides a text item that you can add to a QGraphicsScene to display form...
The QGraphicsView class provides a widget for displaying the contents of a QGraphicsScene.
The QHelpEvent class provides an event that is used to request helpful information about a particular...
The QKeyEvent class describes a key event.
The QLineF class provides a two-dimensional vector using floating point precision.
The QObject class is the base class of all Qt objects.
virtual bool event(QEvent *event)
virtual bool eventFilter(QObject *watched, QEvent *event)
The QPainter class performs low-level painting on widgets and other paint devices.
The QPainterPath class provides a container for painting operations, enabling graphical shapes to be ...
The QPalette class contains color groups for each widget state.
The QPen class defines how a QPainter should draw lines and outlines of shapes.
The QPixmap class is an off-screen image representation that can be used as a paint device.
The QPointF class defines a point in the plane using floating point precision.
The QPolygonF class provides a list of points using floating point precision. \inmodule QtGui.
The QRectF class defines a finite rectangle in the plane using floating point precision.
The QSizeF class defines the size of a two-dimensional object using floating point precision.
The QString class provides a Unicode character string.
The QStyle class is an abstract base class that encapsulates the look and feel of a GUI.
The QStyleOptionGraphicsItem class is used to describe the parameters needed to draw a QGraphicsItem.
The QVariant class acts like a union for the most common Qt data types.
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char const char * method
const EGLAttrib EGLOutputLayerEXT * layers
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
QT_END_INCLUDE_NAMESPACE typedef double qreal
#define Q_DISABLE_COPY(Class)
QT_REQUIRE_CONFIG(graphicsview)
GLint GLint GLint GLint GLint x
[0]
GLint GLenum GLsizei GLsizei GLsizei depth
GLfloat GLfloat GLfloat w
[0]
GLint GLsizei GLsizei height
GLuint GLfloat GLfloat GLfloat GLfloat y1
GLuint GLfloat GLfloat GLfloat x1
GLenum GLenum GLsizei const GLuint GLboolean enabled
GLfloat GLfloat GLfloat GLfloat h
GLsizei GLsizei GLchar * source
GLfixed GLfixed GLfixed y2
GLsizei const GLchar *const * path
GLfixed GLfixed GLint GLint order
layout addItem(textEdit, 0, 0)
scene destroyItemGroup(group)
rect deviceTransform(view->viewportTransform()).map(QPointF(0
scene addText("Hello, world!")
view setBackgroundBrush(QImage(":/images/backgroundtile.png"))
scene addRect(QRectF(-10, -10, 20, 20))
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent