PythonQt.QtGui.QDrag · declarations 001
actionChanged
actionChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDrag.actionChanged; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QDrag::actionChanged(Qt::DropAction action)
This signal is emitted when the action associated with the drag changes.
See also targetChanged().
Source: https://doc.qt.io/archives/qt-5.15/qdrag.html#actionChanged
defaultAction
defaultAction() -> Any
X.defaultAction()
Supplemental documentation: Qt 5 reference:
Qt::DropAction QDrag::defaultAction() const
Returns the default proposed drop action for this drag operation.
See also exec() and supportedActions().
Upstream PySide2 reference signatures (binding differences may apply):
defaultAction(self) -> PySide2.QtCore.Qt.DropAction
Source: https://doc.qt.io/archives/qt-5.15/qdrag.html#defaultAction
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDrag.destroyed; argument details are not documented.
dragCursor
dragCursor(action: Any) -> Any
X.dragCursor(action) -> PythonQt.QtGui.QPixmap
Supplemental documentation: Qt 5 reference:
QPixmap QDrag::dragCursor(Qt::DropAction action) const
Returns the drag cursor for the action.
This function was introduced in Qt 5.0.
See also setDragCursor().
Upstream PySide2 reference signatures (binding differences may apply):
dragCursor(self, action: PySide2.QtCore.Qt.DropAction) -> PySide2.QtGui.QPixmap
Source: https://doc.qt.io/archives/qt-5.15/qdrag.html#dragCursor
exec
exec(supportedActions: Any, defaultAction: Any) -> Any
X.exec(supportedActions, defaultAction)
Supplemental documentation: Qt 5 reference:
Qt::DropAction QDrag::exec(Qt::DropActions supportedActions \= Qt::MoveAction)
Starts the drag and drop operation and returns a value indicating the requested drop action when it is completed. The drop actions that the user can choose from are specified in supportedActions. The default proposed action will be selected among the allowed actions in the following order: Move, Copy and Link.
Note: On Linux and macOS, the drag and drop operation can take some time, but this function does not block the event loop. Other events are still delivered to the application while the operation is performed. On Windows, the Qt event loop is blocked during the operation.
This function was introduced in Qt 4.3.
See also cancel().
Qt::DropAction QDrag::exec(Qt::DropActions supportedActions, Qt::DropAction defaultDropAction)
Starts the drag and drop operation and returns a value indicating the requested drop action when it is completed. The drop actions that the user can choose from are specified in supportedActions.
The defaultDropAction determines which action will be proposed when the user performs a drag without using modifier keys.
Note: On Linux and macOS, the drag and drop operation can take some time, but this function does not block the event loop. Other events are still delivered to the application while the operation is performed. On Windows, the Qt event loop is blocked during the operation. However, QDrag::exec() on Windows causes processEvents() to be called frequently to keep the GUI responsive. If any loops or operations are called while a drag operation is active, it will block the drag operation.
This function was introduced in Qt 4.3.
Source: https://doc.qt.io/archives/qt-5.15/qdrag.html#exec
hotSpot
hotSpot() -> Any
X.hotSpot() -> PythonQt.QtCore.QPoint
Supplemental documentation: Qt 5 reference:
QPoint QDrag::hotSpot() const
Returns the position of the hot spot relative to the top-left corner of the cursor.
See also setHotSpot().
Upstream PySide2 reference signatures (binding differences may apply):
hotSpot(self) -> PySide2.QtCore.QPoint
Source: https://doc.qt.io/archives/qt-5.15/qdrag.html#hotSpot
mimeData
mimeData() -> Any
X.mimeData() -> PythonQt.QtCore.QMimeData
Supplemental documentation: Qt 5 reference:
QMimeData *QDrag::mimeData() const
Returns the MIME data that is encapsulated by the drag object.
See also setMimeData().
Upstream PySide2 reference signatures (binding differences may apply):
mimeData(self) -> PySide2.QtCore.QMimeData
Source: https://doc.qt.io/archives/qt-5.15/qdrag.html#mimeData
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDrag.objectNameChanged; argument details are not documented.
pixmap
pixmap() -> Any
X.pixmap() -> PythonQt.QtGui.QPixmap
Supplemental documentation: Qt 5 reference:
QPixmap QDrag::pixmap() const
Returns the pixmap used to represent the data in a drag and drop operation.
See also setPixmap().
Upstream PySide2 reference signatures (binding differences may apply):
pixmap(self) -> PySide2.QtGui.QPixmap
Source: https://doc.qt.io/archives/qt-5.15/qdrag.html#pixmap
setDragCursor
setDragCursor(cursor: Any, action: Any) -> None
X.setDragCursor(cursor, action)
Supplemental documentation: Qt 5 reference:
void QDrag::setDragCursor(const QPixmap \&cursor, Qt::DropAction action)
Sets the drag cursor for the action. This allows you to override the default native cursors. To revert to using the native cursor for action pass in a null QPixmap as cursor.
Note: setting the drag cursor for IgnoreAction may not work on all platforms. X11 and macOS has been tested to work. Windows does not support it.
See also dragCursor().
Upstream PySide2 reference signatures (binding differences may apply):
setDragCursor(self, cursor: PySide2.QtGui.QPixmap, action: PySide2.QtCore.Qt.DropAction) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdrag.html#setDragCursor
setHotSpot
setHotSpot(hotspot: Any) -> None
X.setHotSpot(hotspot)
Supplemental documentation: Qt 5 reference:
void QDrag::setHotSpot(const QPoint \&hotspot)
Sets the position of the hot spot relative to the top-left corner of the pixmap used to the point specified by hotspot.
Note: on X11, the pixmap may not be able to keep up with the mouse movements if the hot spot causes the pixmap to be displayed directly under the cursor.
See also hotSpot().
Upstream PySide2 reference signatures (binding differences may apply):
setHotSpot(self, hotspot: PySide2.QtCore.QPoint) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdrag.html#setHotSpot
setMimeData
setMimeData(data: Any) -> None
X.setMimeData(data)
Supplemental documentation: Qt 5 reference:
void QDrag::setMimeData(QMimeData *data)
Sets the data to be sent to the given MIME data. Ownership of the data is transferred to the QDrag object.
See also mimeData().
Upstream PySide2 reference signatures (binding differences may apply):
setMimeData(self, data: PySide2.QtCore.QMimeData) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdrag.html#setMimeData
setPixmap
setPixmap(arg__1: Any) -> None
X.setPixmap(arg__1)
Supplemental documentation: Qt 5 reference:
void QDrag::setPixmap(const QPixmap \&pixmap)
Sets pixmap as the pixmap used to represent the data in a drag and drop operation. You can only set a pixmap before the drag is started.
See also pixmap().
Upstream PySide2 reference signatures (binding differences may apply):
setPixmap(self, arg__1: PySide2.QtGui.QPixmap) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdrag.html#setPixmap
source
source() -> Any
X.source() -> PythonQt.private.QObject
Supplemental documentation: Qt 5 reference:
QObject *QDrag::source() const
Returns the source of the drag object. This is the widget where the drag and drop operation originated.
Upstream PySide2 reference signatures (binding differences may apply):
source(self) -> PySide2.QtCore.QObject
Source: https://doc.qt.io/archives/qt-5.15/qdrag.html#source
supportedActions
supportedActions() -> Any
X.supportedActions()
Supplemental documentation: Qt 5 reference:
Qt::DropActions QDrag::supportedActions() const
Returns the set of possible drop actions for this drag operation.
See also exec() and defaultAction().
Upstream PySide2 reference signatures (binding differences may apply):
supportedActions(self) -> PySide2.QtCore.Qt.DropActions
Source: https://doc.qt.io/archives/qt-5.15/qdrag.html#supportedActions
target
target() -> Any
X.target() -> PythonQt.private.QObject
Supplemental documentation: Qt 5 reference:
QObject *QDrag::target() const
Returns the target of the drag and drop operation. This is the widget where the drag object was dropped.
Upstream PySide2 reference signatures (binding differences may apply):
target(self) -> PySide2.QtCore.QObject
Source: https://doc.qt.io/archives/qt-5.15/qdrag.html#target
targetChanged
targetChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDrag.targetChanged; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QDrag::targetChanged(QObject *newTarget)
This signal is emitted when the target of the drag and drop operation changes, with newTarget the new target.
See also target() and actionChanged().
Source: https://doc.qt.io/archives/qt-5.15/qdrag.html#targetChanged