4#ifndef QGRAPHICSSCENE_H
5#define QGRAPHICSSCENE_H
7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtCore/qobject.h>
9#include <QtCore/qpoint.h>
10#include <QtCore/qrect.h>
11#include <QtGui/qbrush.h>
12#include <QtGui/qfont.h>
13#include <QtGui/qtransform.h>
14#include <QtGui/qpen.h>
62 Q_PROPERTY(
QBrush foregroundBrush READ foregroundBrush WRITE setForegroundBrush)
65 Q_PROPERTY(
int bspTreeDepth READ bspTreeDepth WRITE setBspTreeDepth)
68 Q_PROPERTY(
bool stickyFocus READ stickyFocus WRITE setStickyFocus)
69 Q_PROPERTY(
qreal minimumRenderSize READ minimumRenderSize WRITE setMinimumRenderSize)
70 Q_PROPERTY(
bool focusOnTouch READ focusOnTouch WRITE setFocusOnTouch)
80 BackgroundLayer = 0x2,
81 ForegroundLayer = 0x4,
92 inline qreal width()
const {
return sceneRect().width(); }
102 ItemIndexMethod itemIndexMethod()
const;
103 void setItemIndexMethod(ItemIndexMethod
method);
105 int bspTreeDepth()
const;
106 void setBspTreeDepth(
int depth);
108 QRectF itemsBoundingRect()
const;
153 bool hasFocus()
const;
157 void setStickyFocus(
bool enabled);
158 bool stickyFocus()
const;
162 QBrush backgroundBrush()
const;
165 QBrush foregroundBrush()
const;
170 QList <QGraphicsView *> views()
const;
194 qreal minimumRenderSize()
const;
195 void setMinimumRenderSize(
qreal minSize);
197 bool focusOnTouch()
const;
198 void setFocusOnTouch(
bool enabled);
204 void clearSelection();
235 virtual bool focusNextPrevChild(
bool next);
262 friend class QGraphicsItemEffectSourcePrivate;
263#ifndef QT_NO_GESTURES
The QFocusEvent class contains event parameters for widget focus events.
\reentrant \inmodule QtGui
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 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 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)
This signal is emitted by QGraphicsScene when control reaches the event loop, if the scene content ch...
qreal height() const
This convenience function is equivalent to calling sceneRect().height().
void setSceneRect(qreal x, qreal y, qreal w, qreal h)
qreal width() const
This convenience function is equivalent to calling sceneRect().width().
QList< QGraphicsItem * > items(qreal x, qreal y, qreal w, qreal h, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform &deviceTransform=QTransform()) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
void invalidate(qreal x, qreal y, qreal w, qreal h, SceneLayers layers=AllLayers)
This is an overloaded member function, provided for convenience. It differs from the above function o...
void update(qreal x, qreal y, qreal w, qreal h)
This is an overloaded member function, provided for convenience. It differs from the above function o...
void sceneRectChanged(const QRectF &rect)
This signal is emitted by QGraphicsScene whenever the scene rect changes.
ItemIndexMethod
This enum describes the indexing algorithms QGraphicsScene provides for managing positional informati...
void focusItemChanged(QGraphicsItem *newFocus, QGraphicsItem *oldFocus, Qt::FocusReason reason)
This signal is emitted by QGraphicsScene whenever focus changes in the scene (i.e....
QGraphicsItem * itemAt(qreal x, qreal y, const QTransform &deviceTransform) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
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 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.
virtual bool eventFilter(QObject *watched, QEvent *event)
Filters events if this object has been installed as an event filter for the watched object.
The QPainter class performs low-level painting on widgets and other paint devices.
The QPalette class contains color groups for each widget state.
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
\inmodule QtCore\reentrant
The QPolygonF class provides a list of points using floating point precision.
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
The QStyleOptionGraphicsItem class is used to describe the parameters needed to draw a QGraphicsItem.
The QStyle class is an abstract base class that encapsulates the look and feel of a GUI.
Combined button and popup list for selecting options.
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)
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
#define QT_REQUIRE_CONFIG(feature)
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