Skip to content

PythonQt.QtGui.QDragMoveEvent · declarations 001

Back to PythonQt.QtGui.QDragMoveEvent

accept

accept(r: Any) -> None

X.accept(r)

Supplemental documentation: Qt 5 reference:

void QDragMoveEvent::accept(const QRect \&rectangle)

The same as accept(), but also notifies that future moves will also be acceptable if they remain within the rectangle given on the widget. This can improve performance, but may also be ignored by the underlying system.

If the rectangle is empty, drag move events will be sent continuously. This is useful if the source is scrolling in a timer event.

void QDragMoveEvent::accept()

This is an overloaded function.

Calls QDropEvent::accept().

Upstream PySide2 reference signatures (binding differences may apply):

accept(self) -> None
accept(self, r: PySide2.QtCore.QRect) -> None

Source: https://doc.qt.io/archives/qt-5.15/qdragmoveevent.html#accept

answerRect

answerRect() -> Any

X.answerRect() -> PythonQt.QtCore.QRect

Supplemental documentation: Qt 5 reference:

QRect QDragMoveEvent::answerRect() const

Returns the rectangle in the widget where the drop will occur if accepted. You can use this information to restrict drops to certain places on the widget.

Upstream PySide2 reference signatures (binding differences may apply):

answerRect(self) -> PySide2.QtCore.QRect

Source: https://doc.qt.io/archives/qt-5.15/qdragmoveevent.html#answerRect

ignore

ignore(r: Any) -> None

X.ignore(r)

Supplemental documentation: Qt 5 reference:

void QDragMoveEvent::ignore(const QRect \&rectangle)

The opposite of the accept(const QRect\&) function. Moves within the rectangle are not acceptable, and will be ignored.

void QDragMoveEvent::ignore()

This is an overloaded function.

Calls QDropEvent::ignore().

Upstream PySide2 reference signatures (binding differences may apply):

ignore(self) -> None
ignore(self, r: PySide2.QtCore.QRect) -> None

Source: https://doc.qt.io/archives/qt-5.15/qdragmoveevent.html#ignore