PythonQt.QtGui.QDropEvent · declarations 001
Back to PythonQt.QtGui.QDropEvent
acceptProposedAction
acceptProposedAction() -> None
X.acceptProposedAction()
Supplemental documentation: Qt 5 reference:
void QDropEvent::acceptProposedAction()
Sets the drop action to be the proposed action.
See also setDropAction(), proposedAction(), and accept().
Upstream PySide2 reference signatures (binding differences may apply):
acceptProposedAction(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdropevent.html#acceptProposedAction
dropAction
dropAction() -> Any
X.dropAction()
Supplemental documentation: Qt 5 reference:
Qt::DropAction QDropEvent::dropAction() const
Returns the action to be performed on the data by the target. This may be different from the action supplied in proposedAction() if you have called setDropAction() to explicitly choose a drop action.
See also setDropAction().
Upstream PySide2 reference signatures (binding differences may apply):
dropAction(self) -> PySide2.QtCore.Qt.DropAction
Source: https://doc.qt.io/archives/qt-5.15/qdropevent.html#dropAction
keyboardModifiers
keyboardModifiers() -> Any
X.keyboardModifiers()
Supplemental documentation: Qt 5 reference:
Qt::KeyboardModifiers QDropEvent::keyboardModifiers() const
Returns the modifier keys that are pressed.
Upstream PySide2 reference signatures (binding differences may apply):
keyboardModifiers(self) -> PySide2.QtCore.Qt.KeyboardModifiers
Source: https://doc.qt.io/archives/qt-5.15/qdropevent.html#keyboardModifiers
mimeData
mimeData() -> Any
X.mimeData() -> PythonQt.QtCore.QMimeData
Supplemental documentation: Qt 5 reference:
const QMimeData *QDropEvent::mimeData() const
Returns the data that was dropped on the widget and its associated MIME type information.
Upstream PySide2 reference signatures (binding differences may apply):
mimeData(self) -> PySide2.QtCore.QMimeData
Source: https://doc.qt.io/archives/qt-5.15/qdropevent.html#mimeData
mouseButtons
mouseButtons() -> Any
X.mouseButtons()
Supplemental documentation: Qt 5 reference:
Qt::MouseButtons QDropEvent::mouseButtons() const
Returns the mouse buttons that are pressed..
Upstream PySide2 reference signatures (binding differences may apply):
mouseButtons(self) -> PySide2.QtCore.Qt.MouseButtons
Source: https://doc.qt.io/archives/qt-5.15/qdropevent.html#mouseButtons
pos
pos() -> Any
X.pos() -> PythonQt.QtCore.QPoint
Supplemental documentation: Qt 5 reference:
QPoint QDropEvent::pos() const
Returns the position where the drop was made.
Upstream PySide2 reference signatures (binding differences may apply):
pos(self) -> PySide2.QtCore.QPoint
Source: https://doc.qt.io/archives/qt-5.15/qdropevent.html#pos
posF
posF() -> Any
X.posF() -> PythonQt.QtCore.QPointF
Supplemental documentation: Qt 5 reference:
const QPointF \&QDropEvent::posF() const
Returns the position where the drop was made.
Upstream PySide2 reference signatures (binding differences may apply):
posF(self) -> PySide2.QtCore.QPointF
Source: https://doc.qt.io/archives/qt-5.15/qdropevent.html#posF
possibleActions
possibleActions() -> Any
X.possibleActions()
Supplemental documentation: Qt 5 reference:
Qt::DropActions QDropEvent::possibleActions() const
Returns an OR-combination of possible drop actions.
See also dropAction().
Upstream PySide2 reference signatures (binding differences may apply):
possibleActions(self) -> PySide2.QtCore.Qt.DropActions
Source: https://doc.qt.io/archives/qt-5.15/qdropevent.html#possibleActions
proposedAction
proposedAction() -> Any
X.proposedAction()
Supplemental documentation: Qt 5 reference:
Qt::DropAction QDropEvent::proposedAction() const
Returns the proposed drop action.
See also dropAction().
Upstream PySide2 reference signatures (binding differences may apply):
proposedAction(self) -> PySide2.QtCore.Qt.DropAction
Source: https://doc.qt.io/archives/qt-5.15/qdropevent.html#proposedAction
setDropAction
setDropAction(action: Any) -> None
X.setDropAction(action)
Supplemental documentation: Qt 5 reference:
void QDropEvent::setDropAction(Qt::DropAction action)
Sets the action to be performed on the data by the target. Use this to override the proposed action with one of the possible actions.
If you set a drop action that is not one of the possible actions, the drag and drop operation will default to a copy operation.
Once you have supplied a replacement drop action, call accept() instead of acceptProposedAction().
See also dropAction().
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/qdropevent.html#setDropAction
source
source() -> Any
X.source() -> PythonQt.private.QObject
Supplemental documentation: Qt 5 reference:
QObject *QDropEvent::source() const
If the source of the drag operation is a widget in this application, this function
returns that source; otherwise it returns nullptr. The source of the operation is the
first parameter to the QDrag object
used instantiate the drag.
This is useful if your widget needs special behavior when dragging to itself.
See also QDrag::QDrag().
Upstream PySide2 reference signatures (binding differences may apply):
source(self) -> PySide2.QtCore.QObject
Source: https://doc.qt.io/archives/qt-5.15/qdropevent.html#source