|
enum | ItemIndexMethod { BspTreeIndex
, NoIndex = -1
} |
|
enum | SceneLayer { ItemLayer = 0x1
, BackgroundLayer = 0x2
, ForegroundLayer = 0x4
, AllLayers = 0xffff
} |
|
void | update (const QRectF &rect=QRectF()) |
|
void | invalidate (const QRectF &rect=QRectF(), SceneLayers layers=AllLayers) |
|
void | advance () |
|
void | clearSelection () |
|
void | clear () |
|
void | deleteLater () |
|
| QGraphicsScene (QObject *parent=nullptr) |
|
| QGraphicsScene (const QRectF &sceneRect, QObject *parent=nullptr) |
|
| QGraphicsScene (qreal x, qreal y, qreal width, qreal height, QObject *parent=nullptr) |
|
virtual | ~QGraphicsScene () |
|
QRectF | sceneRect () const |
|
qreal | width () const |
|
qreal | height () const |
|
void | setSceneRect (const QRectF &rect) |
|
void | setSceneRect (qreal x, qreal y, qreal w, qreal h) |
|
void | render (QPainter *painter, const QRectF &target=QRectF(), const QRectF &source=QRectF(), Qt::AspectRatioMode aspectRatioMode=Qt::KeepAspectRatio) |
|
ItemIndexMethod | itemIndexMethod () const |
|
void | setItemIndexMethod (ItemIndexMethod method) |
|
int | bspTreeDepth () const |
|
void | setBspTreeDepth (int depth) |
|
QRectF | itemsBoundingRect () const |
|
QList< QGraphicsItem * > | items (Qt::SortOrder order=Qt::DescendingOrder) const |
|
QList< QGraphicsItem * > | items (const QPointF &pos, Qt::ItemSelectionMode mode=Qt::IntersectsItemShape, Qt::SortOrder order=Qt::DescendingOrder, const QTransform &deviceTransform=QTransform()) const |
| Returns all visible items that, depending on mode, are at the specified pos in a list sorted using order. In this case, "visible" defines items for which: isVisible() returns true , effectiveOpacity() returns a value greater than 0.0 (which is fully transparent) and the parent item does not clip it. More...
|
|
QList< QGraphicsItem * > | items (const QRectF &rect, Qt::ItemSelectionMode mode=Qt::IntersectsItemShape, Qt::SortOrder order=Qt::DescendingOrder, const QTransform &deviceTransform=QTransform()) const |
| Returns all visible items that, depending on mode, are either inside or intersect with the specified rect, in a list sorted using order. In this case, "visible" defines items for which: isVisible() returns true , effectiveOpacity() returns a value greater than 0.0 (which is fully transparent) and the parent item does not clip it. More...
|
|
QList< QGraphicsItem * > | items (const QPolygonF &polygon, Qt::ItemSelectionMode mode=Qt::IntersectsItemShape, Qt::SortOrder order=Qt::DescendingOrder, const QTransform &deviceTransform=QTransform()) const |
| Returns all visible items that, depending on mode, are either inside or intersect with the specified polygon, in a list sorted using order. In this case, "visible" defines items for which: isVisible() returns true , effectiveOpacity() returns a value greater than 0.0 (which is fully transparent) and the parent item does not clip it. More...
|
|
QList< QGraphicsItem * > | items (const QPainterPath &path, Qt::ItemSelectionMode mode=Qt::IntersectsItemShape, Qt::SortOrder order=Qt::DescendingOrder, const QTransform &deviceTransform=QTransform()) const |
| Returns all visible items that, depending on mode, are either inside or intersect with the specified path, in a list sorted using order. In this case, "visible" defines items for which: isVisible() returns true , effectiveOpacity() returns a value greater than 0.0 (which is fully transparent) and the parent item does not clip it. More...
|
|
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 defined by x, y, w and h, in a list sorted using order. In this case, "visible" defines items for which: isVisible() returns true , effectiveOpacity() returns a value greater than 0.0 (which is fully transparent) and the parent item does not clip it. More...
|
|
QList< QGraphicsItem * > | collidingItems (const QGraphicsItem *item, Qt::ItemSelectionMode mode=Qt::IntersectsItemShape) const |
|
QGraphicsItem * | itemAt (const QPointF &pos, const QTransform &deviceTransform) const |
|
QGraphicsItem * | itemAt (qreal x, qreal y, const QTransform &deviceTransform) const |
|
QList< QGraphicsItem * > | selectedItems () const |
|
QPainterPath | selectionArea () const |
|
void | setSelectionArea (const QPainterPath &path, const QTransform &deviceTransform) |
|
void | setSelectionArea (const QPainterPath &path, Qt::ItemSelectionOperation selectionOperation=Qt::ReplaceSelection, Qt::ItemSelectionMode mode=Qt::IntersectsItemShape, const QTransform &deviceTransform=QTransform()) |
|
QGraphicsItemGroup * | createItemGroup (const QList< QGraphicsItem * > &items) |
|
void | destroyItemGroup (QGraphicsItemGroup *group) |
|
void | addItem (QGraphicsItem *item) |
|
QGraphicsEllipseItem * | addEllipse (const QRectF &rect, const QPen &pen=QPen(), const QBrush &brush=QBrush()) |
|
QGraphicsLineItem * | addLine (const QLineF &line, const QPen &pen=QPen()) |
|
QGraphicsPathItem * | addPath (const QPainterPath &path, const QPen &pen=QPen(), const QBrush &brush=QBrush()) |
|
QGraphicsPixmapItem * | addPixmap (const QPixmap &pixmap) |
|
QGraphicsPolygonItem * | addPolygon (const QPolygonF &polygon, const QPen &pen=QPen(), const QBrush &brush=QBrush()) |
|
QGraphicsRectItem * | addRect (const QRectF &rect, const QPen &pen=QPen(), const QBrush &brush=QBrush()) |
|
QGraphicsTextItem * | addText (const QString &text, const QFont &font=QFont()) |
|
QGraphicsSimpleTextItem * | addSimpleText (const QString &text, const QFont &font=QFont()) |
|
QGraphicsProxyWidget * | addWidget (QWidget *widget, Qt::WindowFlags wFlags=Qt::WindowFlags()) |
|
QGraphicsEllipseItem * | addEllipse (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()) |
|
QGraphicsRectItem * | addRect (qreal x, qreal y, qreal w, qreal h, const QPen &pen=QPen(), const QBrush &brush=QBrush()) |
|
void | removeItem (QGraphicsItem *item) |
|
QGraphicsItem * | focusItem () const |
|
void | setFocusItem (QGraphicsItem *item, Qt::FocusReason focusReason=Qt::OtherFocusReason) |
|
bool | hasFocus () const |
|
void | setFocus (Qt::FocusReason focusReason=Qt::OtherFocusReason) |
|
void | clearFocus () |
|
void | setStickyFocus (bool enabled) |
|
bool | stickyFocus () const |
|
QGraphicsItem * | mouseGrabberItem () const |
|
QBrush | backgroundBrush () const |
|
void | setBackgroundBrush (const QBrush &brush) |
|
QBrush | foregroundBrush () const |
|
void | setForegroundBrush (const QBrush &brush) |
|
virtual QVariant | inputMethodQuery (Qt::InputMethodQuery query) const |
|
QList< QGraphicsView * > | views () const |
|
void | update (qreal x, qreal y, qreal w, qreal h) |
|
void | invalidate (qreal x, qreal y, qreal w, qreal h, SceneLayers layers=AllLayers) |
|
QStyle * | style () const |
|
void | setStyle (QStyle *style) |
|
QFont | font () const |
|
void | setFont (const QFont &font) |
|
QPalette | palette () const |
|
void | setPalette (const QPalette &palette) |
|
bool | isActive () const |
|
QGraphicsItem * | activePanel () const |
|
void | setActivePanel (QGraphicsItem *item) |
|
QGraphicsWidget * | activeWindow () const |
|
void | setActiveWindow (QGraphicsWidget *widget) |
|
bool | sendEvent (QGraphicsItem *item, QEvent *event) |
|
qreal | minimumRenderSize () const |
|
void | setMinimumRenderSize (qreal minSize) |
|
bool | focusOnTouch () const |
|
void | setFocusOnTouch (bool enabled) |
|
Q_INVOKABLE | QObject (QObject *parent=nullptr) |
|
virtual | ~QObject () |
|
QString | objectName () const |
|
void | setObjectName (const QString &name) |
|
QBindable< QString > | bindableObjectName () |
|
bool | isWidgetType () const |
|
bool | isWindowType () const |
|
bool | signalsBlocked () const noexcept |
|
bool | blockSignals (bool b) noexcept |
|
QThread * | thread () const |
|
void | moveToThread (QThread *thread) |
|
int | startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer) |
|
void | killTimer (int id) |
|
template<typename T > |
T | findChild (const QString &aName=QString(), Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
|
template<typename T > |
QList< T > | findChildren (const QString &aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
|
template<typename T > |
QList< T > | findChildren (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
|
const QObjectList & | children () const |
|
void | setParent (QObject *parent) |
|
void | installEventFilter (QObject *filterObj) |
|
void | removeEventFilter (QObject *obj) |
|
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const |
|
bool | disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *member=nullptr) const |
|
bool | disconnect (const QObject *receiver, const char *member=nullptr) const |
|
void | dumpObjectTree () const |
|
void | dumpObjectInfo () const |
|
bool | setProperty (const char *name, const QVariant &value) |
|
QVariant | property (const char *name) const |
|
QList< QByteArray > | dynamicPropertyNames () const |
|
QBindingStorage * | bindingStorage () |
|
const QBindingStorage * | bindingStorage () const |
|
QObject * | parent () const |
|
bool | inherits (const char *classname) const |
|
static QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection) |
|
static QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection) |
|
template<typename Func1 , typename Func2 > |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
|
static QMetaObject::Connection ::type | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 slot) |
|
static QMetaObject::Connection ::type | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *context, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
|
template<typename Func1 , typename Func2 > |
static std::enable_if< QtPrivate::FunctionPointer< Func2 >::ArgumentCount==-1 &&!std::is_convertible_v< Func2, const char * >, QMetaObject::Connection >::type | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 slot) |
|
template<typename Func1 , typename Func2 > |
static std::enable_if< QtPrivate::FunctionPointer< Func2 >::ArgumentCount==-1 &&!std::is_convertible_v< Func2, const char * >, QMetaObject::Connection >::type | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *context, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
|
static bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member) |
|
static bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member) |
|
static bool | disconnect (const QMetaObject::Connection &) |
|
template<typename Func1 , typename Func2 > |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot) |
|
template<typename Func1 > |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *receiver, void **zero) |
|
virtual bool | focusNextPrevChild (bool next) |
|
QScopedPointer< QObjectData > | d_ptr |
|
QBrush | backgroundBrush |
| the background brush of the scene. More...
|
|
QBrush | foregroundBrush |
| the foreground brush of the scene. More...
|
|
ItemIndexMethod | itemIndexMethod |
| the item indexing method. More...
|
|
QRectF | sceneRect |
| the scene rectangle; the bounding rectangle of the scene More...
|
|
int | bspTreeDepth |
| the depth of QGraphicsScene's BSP index tree More...
|
|
QPalette | palette |
| the scene's default palette More...
|
|
QFont | font |
| the scene's default font More...
|
|
bool | stickyFocus |
| whether clicking into the scene background will clear focus More...
|
|
qreal | minimumRenderSize |
| the minimal view-transformed size an item must have to be drawn More...
|
|
bool | focusOnTouch |
| whether items gain focus when receiving a {touch begin} event. More...
|
|
QString | objectName |
| the name of this object More...
|
|
template< class T > T | qobject_cast (const QObject *object) |
|
template< typename T > T | qFindChildqFindChildren (const QObject *obj, const QString &name)() |
|
template< typename T > QList< T > | qFindChildrenqFindChildren (const QObject *obj, const QString &name)() |
|
| QObjectList |
|