API reference - Class QDropEvent

Notation used in Ruby API documentation

Description: Binding of QDropEvent

Class hierarchy: QDropEvent » QEvent

Public constructors

new QDropEventnew(const QPoint pos,
const Qt_QFlags_DropAction actions,
const QMimeData ptr data,
const Qt_QFlags_MouseButton buttons,
const Qt_QFlags_KeyboardModifier modifiers,
const QEvent_Type type = QEvent::Drop)
Constructor QDropEvent::QDropEvent(const QPoint &pos, QFlags<Qt::DropAction> actions, const QMimeData *data, QFlags<Qt::MouseButton> buttons, QFlags<Qt::KeyboardModifier> modifiers, QEvent::Type type)

Public methods

voidacceptProposedActionMethod void QDropEvent::acceptProposedAction()
[const]const QEvent ptrasConstQEventDelivers the base class interface QEvent of QDropEvent
[const]const QMimeSource ptrasConstQMimeSourceDelivers the base class interface QMimeSource of QDropEvent
QEvent ptrasQEventDelivers the base class interface QEvent of QDropEvent
QMimeSource ptrasQMimeSourceDelivers the base class interface QMimeSource of QDropEvent
[const]voidassign(const QDropEvent other)Assign the contents of another object to self
voidcreateEnsures the C++ object is created
voiddestroyExplicitly destroy the object
[const]booldestroyed?Returns a value indicating whether the object was already destroyed
[const]Qt_DropActiondropActionMethod Qt::DropAction QDropEvent::dropAction()
voiddropAction=(const Qt_DropAction action)Method void QDropEvent::setDropAction(Qt::DropAction action)
[const]QDropEventdupCreates a copy of self
[virtual,const]stringencodedData(string arg1)Virtual method QByteArray QDropEvent::encodedData(const char *)
[virtual,const]stringformat(int n)Virtual method const char *QDropEvent::format(int n)
[const]boolis_const_object?Returns a value indicating whether the reference is a const reference
[const]Qt_QFlags_KeyboardModifierkeyboardModifiersMethod QFlags<Qt::KeyboardModifier> QDropEvent::keyboardModifiers()
[const]const QMimeData ptrmimeDataMethod const QMimeData *QDropEvent::mimeData()
[const]Qt_QFlags_MouseButtonmouseButtonsMethod QFlags<Qt::MouseButton> QDropEvent::mouseButtons()
[const]QPointposMethod const QPoint &QDropEvent::pos()
[const]Qt_QFlags_DropActionpossibleActionsMethod QFlags<Qt::DropAction> QDropEvent::possibleActions()
[const]Qt_DropActionproposedActionMethod Qt::DropAction QDropEvent::proposedAction()
[virtual,const]boolprovides(string arg1)Virtual method bool QDropEvent::provides(const char *)
voidsetDropAction(const Qt_DropAction action)Method void QDropEvent::setDropAction(Qt::DropAction action)
[const]QWidget ptrsourceMethod QWidget *QDropEvent::source()

Detailed description

void acceptProposedAction

Description: Method void QDropEvent::acceptProposedAction()

[const] const QEvent ptr asConstQEvent

Description: Delivers the base class interface QEvent of QDropEvent

Class QDropEvent is derived from multiple base classes. This method delivers the QEvent base class aspect.

Use this version if you have a const reference.

[const] const QMimeSource ptr asConstQMimeSource

Description: Delivers the base class interface QMimeSource of QDropEvent

Class QDropEvent is derived from multiple base classes. This method delivers the QMimeSource base class aspect.

Use this version if you have a const reference.

QEvent ptr asQEvent

Description: Delivers the base class interface QEvent of QDropEvent

Class QDropEvent is derived from multiple base classes. This method delivers the QEvent base class aspect.

QMimeSource ptr asQMimeSource

Description: Delivers the base class interface QMimeSource of QDropEvent

Class QDropEvent is derived from multiple base classes. This method delivers the QMimeSource base class aspect.

[const] void assign(const QDropEvent other)

Description: Assign the contents of another object to self

This method assigns the contents of another object to self. This is a deep copy that does not only copy the reference but the actual content.

void create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

void destroy

Description: Explicitly destroy the object

Explicitly destroy the object on C++ side if it was owned by the Ruby interpreter. Subsequent access to this object will throw an exception. If the object is not owned by Ruby, this method will do nothing.

[const] bool destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

[const] Qt_DropAction dropAction

Description: Method Qt::DropAction QDropEvent::dropAction()

void dropAction=(const Qt_DropAction action)

Description: Method void QDropEvent::setDropAction(Qt::DropAction action)

[const] QDropEvent dup

Description: Creates a copy of self

[virtual,const] string encodedData(string arg1)

Description: Virtual method QByteArray QDropEvent::encodedData(const char *)

This method can be reimplemented in a derived class.

[virtual,const] string format(int n)

Description: Virtual method const char *QDropEvent::format(int n)

This method can be reimplemented in a derived class.

[const] bool is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

[const] Qt_QFlags_KeyboardModifier keyboardModifiers

Description: Method QFlags<Qt::KeyboardModifier> QDropEvent::keyboardModifiers()

[const] const QMimeData ptr mimeData

Description: Method const QMimeData *QDropEvent::mimeData()

[const] Qt_QFlags_MouseButton mouseButtons

Description: Method QFlags<Qt::MouseButton> QDropEvent::mouseButtons()

[static] new QDropEvent new(const QPoint pos,const Qt_QFlags_DropAction actions,const QMimeData ptr data,const Qt_QFlags_MouseButton buttons,const Qt_QFlags_KeyboardModifier modifiers,const QEvent_Type type = QEvent::Drop)

Description: Constructor QDropEvent::QDropEvent(const QPoint &pos, QFlags<Qt::DropAction> actions, const QMimeData *data, QFlags<Qt::MouseButton> buttons, QFlags<Qt::KeyboardModifier> modifiers, QEvent::Type type)

This method creates an object of class QDropEvent.

[const] QPoint pos

Description: Method const QPoint &QDropEvent::pos()

[const] Qt_QFlags_DropAction possibleActions

Description: Method QFlags<Qt::DropAction> QDropEvent::possibleActions()

[const] Qt_DropAction proposedAction

Description: Method Qt::DropAction QDropEvent::proposedAction()

[virtual,const] bool provides(string arg1)

Description: Virtual method bool QDropEvent::provides(const char *)

This method can be reimplemented in a derived class.

void setDropAction(const Qt_DropAction action)

Description: Method void QDropEvent::setDropAction(Qt::DropAction action)

[const] QWidget ptr source

Description: Method QWidget *QDropEvent::source()