Skip to content

PythonQt.QtGui.QGraphicsSceneDragDropEvent · declarations 001

Back to PythonQt.QtGui.QGraphicsSceneDragDropEvent

acceptProposedAction

acceptProposedAction() -> None

X.acceptProposedAction()

Supplemental documentation: Qt 5 reference:

void QGraphicsSceneDragDropEvent::acceptProposedAction()

Sets the proposed action as accepted, i.e, the drop action is set to the proposed action. This is equal to:

setDropAction(proposedAction());

When using this function, one should not call accept().

See also dropAction(), setDropAction(), and proposedAction().

Upstream PySide2 reference signatures (binding differences may apply):

acceptProposedAction(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsscenedragdropevent.html#acceptProposedAction

buttons

buttons() -> Any

X.buttons()

Supplemental documentation: Qt 5 reference:

Qt::MouseButtons QGraphicsSceneDragDropEvent::buttons() const

Returns a Qt::MouseButtons value indicating which buttons were pressed on the mouse when this mouse event was generated.

See also Qt::MouseButtons.

Upstream PySide2 reference signatures (binding differences may apply):

buttons(self) -> PySide2.QtCore.Qt.MouseButtons

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsscenedragdropevent.html#buttons

dropAction

dropAction() -> Any

X.dropAction()

Supplemental documentation: Qt 5 reference:

Qt::DropAction QGraphicsSceneDragDropEvent::dropAction() const

Returns the action that was performed in this drag and drop. This should be set by the receiver of the drop and is returned by QDrag::exec().

See also setDropAction() and acceptProposedAction().

Upstream PySide2 reference signatures (binding differences may apply):

dropAction(self) -> PySide2.QtCore.Qt.DropAction

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsscenedragdropevent.html#dropAction

mimeData

mimeData() -> Any

X.mimeData() -> PythonQt.QtCore.QMimeData

Supplemental documentation: Qt 5 reference:

const QMimeData *QGraphicsSceneDragDropEvent::mimeData() const

This function returns the MIME data of the event.

Upstream PySide2 reference signatures (binding differences may apply):

mimeData(self) -> PySide2.QtCore.QMimeData

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsscenedragdropevent.html#mimeData

modifiers

modifiers() -> Any

X.modifiers()

Supplemental documentation: Qt 5 reference:

Qt::KeyboardModifiers QGraphicsSceneDragDropEvent::modifiers() const

Returns the keyboard modifiers that were pressed when the drag and drop event was created.

See also Qt::KeyboardModifiers.

Upstream PySide2 reference signatures (binding differences may apply):

modifiers(self) -> PySide2.QtCore.Qt.KeyboardModifiers

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsscenedragdropevent.html#modifiers

pos

pos() -> Any

X.pos() -> PythonQt.QtCore.QPointF

Supplemental documentation: Qt 5 reference:

QPointF QGraphicsSceneDragDropEvent::pos() const

Returns the mouse position of the event relative to the view that sent the event.

See also QGraphicsView, screenPos(), and scenePos().

Upstream PySide2 reference signatures (binding differences may apply):

pos(self) -> PySide2.QtCore.QPointF

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsscenedragdropevent.html#pos

possibleActions

possibleActions() -> Any

X.possibleActions()

Supplemental documentation: Qt 5 reference:

Qt::DropActions QGraphicsSceneDragDropEvent::possibleActions() const

Returns the possible drop actions that the drag and drop can result in.

See also Qt::DropActions.

Upstream PySide2 reference signatures (binding differences may apply):

possibleActions(self) -> PySide2.QtCore.Qt.DropActions

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsscenedragdropevent.html#possibleActions

proposedAction

proposedAction() -> Any

X.proposedAction()

Supplemental documentation: Qt 5 reference:

Qt::DropAction QGraphicsSceneDragDropEvent::proposedAction() const

Returns the drop action that is proposed, i.e., preferred. The action must be one of the possible actions as defined by possibleActions().

See also Qt::DropAction and possibleActions().

Upstream PySide2 reference signatures (binding differences may apply):

proposedAction(self) -> PySide2.QtCore.Qt.DropAction

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsscenedragdropevent.html#proposedAction

scenePos

scenePos() -> Any

X.scenePos() -> PythonQt.QtCore.QPointF

Supplemental documentation: Qt 5 reference:

QPointF QGraphicsSceneDragDropEvent::scenePos() const

Returns the position of the mouse in scene coordinates.

See also pos() and screenPos().

Upstream PySide2 reference signatures (binding differences may apply):

scenePos(self) -> PySide2.QtCore.QPointF

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsscenedragdropevent.html#scenePos

screenPos

screenPos() -> Any

X.screenPos() -> PythonQt.QtCore.QPoint

Supplemental documentation: Qt 5 reference:

QPoint QGraphicsSceneDragDropEvent::screenPos() const

Returns the position of the mouse relative to the screen.

See also pos() and scenePos().

Upstream PySide2 reference signatures (binding differences may apply):

screenPos(self) -> PySide2.QtCore.QPoint

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsscenedragdropevent.html#screenPos

setButtons

setButtons(buttons: Any) -> None

X.setButtons(buttons)

Upstream PySide2 reference signatures (binding differences may apply):

setButtons(self, buttons: PySide2.QtCore.Qt.MouseButtons) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsscenedragdropevent.html#setButtons

setDropAction

setDropAction(action: Any) -> None

X.setDropAction(action)

Supplemental documentation: Qt 5 reference:

void QGraphicsSceneDragDropEvent::setDropAction(Qt::DropAction action)

This function lets the receiver of the drop set the drop action that was performed to action, which should be one of the possible actions. Call accept() in stead of acceptProposedAction() if you use this function.

See also dropAction(), accept(), and possibleActions().

Upstream PySide2 reference signatures (binding differences may apply):

setDropAction(self, action: PySide2.QtCore.Qt.DropAction) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsscenedragdropevent.html#setDropAction

setModifiers

setModifiers(modifiers: Any) -> None

X.setModifiers(modifiers)

Upstream PySide2 reference signatures (binding differences may apply):

setModifiers(self, modifiers: PySide2.QtCore.Qt.KeyboardModifiers) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsscenedragdropevent.html#setModifiers

setPos

setPos(pos: Any) -> None

X.setPos(pos)

Upstream PySide2 reference signatures (binding differences may apply):

setPos(self, pos: PySide2.QtCore.QPointF) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsscenedragdropevent.html#setPos

setPossibleActions

setPossibleActions(actions: Any) -> None

X.setPossibleActions(actions)

Upstream PySide2 reference signatures (binding differences may apply):

setPossibleActions(self, actions: PySide2.QtCore.Qt.DropActions) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsscenedragdropevent.html#setPossibleActions

setProposedAction

setProposedAction(action: Any) -> None

X.setProposedAction(action)

Upstream PySide2 reference signatures (binding differences may apply):

setProposedAction(self, action: PySide2.QtCore.Qt.DropAction) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsscenedragdropevent.html#setProposedAction

setScenePos

setScenePos(pos: Any) -> None

X.setScenePos(pos)

Upstream PySide2 reference signatures (binding differences may apply):

setScenePos(self, pos: PySide2.QtCore.QPointF) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsscenedragdropevent.html#setScenePos

setScreenPos

setScreenPos(pos: Any) -> None

X.setScreenPos(pos)

Upstream PySide2 reference signatures (binding differences may apply):

setScreenPos(self, pos: PySide2.QtCore.QPoint) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsscenedragdropevent.html#setScreenPos

source

source() -> Any

X.source() -> PythonQt.QtGui.QWidget

Supplemental documentation: Qt 5 reference:

QWidget *QGraphicsSceneDragDropEvent::source() const

This function returns the QGraphicsView that created the QGraphicsSceneDragDropEvent.

Upstream PySide2 reference signatures (binding differences may apply):

source(self) -> PySide2.QtWidgets.QWidget

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsscenedragdropevent.html#source