Obsolete Members for QGraphicsItem
The following members of class QGraphicsItem are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
Public Functions
(obsolete) bool | handlesChildEvents() const |
(obsolete) QMatrix | matrix() const |
(obsolete) void | resetMatrix() |
(obsolete) QMatrix | sceneMatrix() const |
(obsolete) void | setHandlesChildEvents(bool enabled) |
(obsolete) void | setMatrix(const QMatrix &matrix, bool combine = false) |
Member Function Documentation
bool QGraphicsItem::handlesChildEvents() const
Returns true
if this item handles child events (i.e., all events intended for any of its children are instead sent to this item); otherwise, false is returned.
This property is useful for item groups; it allows one item to handle events on behalf of its children, as opposed to its children handling their events individually.
The default is to return false; children handle their own events. The exception for this is if the item is a QGraphicsItemGroup, then it defaults to return true.
See also setHandlesChildEvents().
QMatrix QGraphicsItem::matrix() const
Returns the item's affine transformation matrix. This is a subset or the item's full transformation matrix, and might not represent the item's full transformation.
Use transform() instead.
See also setMatrix(), setTransform(), and sceneTransform().
void QGraphicsItem::resetMatrix()
Use resetTransform() instead.
QMatrix QGraphicsItem::sceneMatrix() const
Use sceneTransform() instead.
See also transform(), setTransform(), scenePos(), and The Graphics View Coordinate System.
void QGraphicsItem::setHandlesChildEvents(bool enabled)
If enabled is true, this item is set to handle all events for all its children (i.e., all events intented for any of its children are instead sent to this item); otherwise, if enabled is false, this item will only handle its own events. The default value is false.
This property is useful for item groups; it allows one item to handle events on behalf of its children, as opposed to its children handling their events individually.
If a child item accepts hover events, its parent will receive hover move events as the cursor passes through the child, but it does not receive hover enter and hover leave events on behalf of its child.
See also handlesChildEvents().
void QGraphicsItem::setMatrix(const QMatrix &matrix, bool combine = false)
Sets the item's affine transformation matrix. This is a subset or the item's full transformation matrix, and might not represent the item's full transformation.
Use setTransform() instead.
See also matrix(), transform(), and The Graphics View Coordinate System.