以下成員源於類 QGraphicsItem 被棄用。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(棄用)
bool
|
handlesChildEvents () const |
(棄用)
void
|
setHandlesChildEvents (bool enabled ) |
This function is deprecated. We strongly advise against using it in new code.
返迴
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.
另請參閱 setHandlesChildEvents ().
This function is deprecated. We strongly advise against using it in new code.
若 enabled is true, this item is set to handle all events for all its children (i.e., all events intended for any of its children are instead sent to this item); otherwise, if enabled 為 false,此項僅處理它自己的事件。默認值為 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.
另請參閱 handlesChildEvents ().