Skip to content

PythonQt.Qt.QGraphicsScene · declarations 001

Back to PythonQt.Qt.QGraphicsScene

changed

changed(*args: Any, **kwargs: Any) -> Any

Native PythonQt.Qt.QGraphicsScene.changed; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QGraphicsScene::changed(const QList\<QRectF> \&region)

This signal is emitted by QGraphicsScene when control reaches the event loop, if the scene content changes. The region parameter contains a list of scene rectangles that indicate the area that has been changed.

See also QGraphicsView::updateScene().

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsscene.html#changed

destroyed

destroyed(*args: Any, **kwargs: Any) -> Any

Native PythonQt.Qt.QGraphicsScene.destroyed; argument details are not documented.

focusItemChanged

focusItemChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.Qt.QGraphicsScene.focusItemChanged; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QGraphicsScene::focusItemChanged(QGraphicsItem *newFocusItem, QGraphicsItem *oldFocusItem, Qt::FocusReason reason)

This signal is emitted by QGraphicsScene whenever focus changes in the scene (i.e., when an item gains or loses input focus, or when focus passes from one item to another). You can connect to this signal if you need to keep track of when other items gain input focus. It is particularly useful for implementing virtual keyboards, input methods, and cursor items.

oldFocusItem is a pointer to the item that previously had focus, or 0 if no item had focus before the signal was emitted. newFocusItem is a pointer to the item that gained input focus, or nullptr if focus was lost. reason is the reason for the focus change (e.g., if the scene was deactivated while an input field had focus, oldFocusItem would point to the input field item, newFocusItem would be nullptr, and reason would be Qt::ActiveWindowFocusReason.

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsscene.html#focusItemChanged

objectNameChanged

objectNameChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.Qt.QGraphicsScene.objectNameChanged; argument details are not documented.

sceneRectChanged

sceneRectChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.Qt.QGraphicsScene.sceneRectChanged; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QGraphicsScene::sceneRectChanged(const QRectF \&rect)

This signal is emitted by QGraphicsScene whenever the scene rect changes. The rect parameter is the new scene rectangle.

See also QGraphicsView::updateSceneRect().

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsscene.html#sceneRectChanged

selectionChanged

selectionChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.Qt.QGraphicsScene.selectionChanged; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QGraphicsScene::selectionChanged()

This signal is emitted by QGraphicsScene whenever the selection changes. You can call selectedItems() to get the new list of selected items.

The selection changes whenever an item is selected or unselected, a selection area is set, cleared or otherwise changed, if a preselected item is added to the scene, or if a selected item is removed from the scene.

QGraphicsScene emits this signal only once for group selection operations. For example, if you set a selection area, select or unselect a QGraphicsItemGroup, or if you add or remove from the scene a parent item that contains several selected items, selectionChanged() is emitted only once after the operation has completed (instead of once for each item).

This function was introduced in Qt 4.3.

See also setSelectionArea(), selectedItems(), and QGraphicsItem::setSelected().

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsscene.html#selectionChanged