CopperSpice API  1.9.2
QDragEnterEvent Class Reference

The QDragEnterEvent class provides an event which is sent to a widget when a drag and drop action enters it. More...

Inheritance diagram for QDragEnterEvent:
QDragMoveEvent QDropEvent QEvent

Public Methods

 QDragEnterEvent (const QPoint &point, Qt::DropActions actions, const QMimeData *data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers)
 
- Public Methods inherited from QDragMoveEvent
 QDragMoveEvent (const QPoint &pos, Qt::DropActions actions, const QMimeData *data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Type type=DragMove)
 
 ~QDragMoveEvent ()
 
void accept ()
 
void accept (const QRect &xRect)
 
QRect answerRect () const
 
void ignore ()
 
void ignore (const QRect &xRect)
 
- Public Methods inherited from QDropEvent
 QDropEvent (const QPointF &pos, Qt::DropActions actions, const QMimeData *data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Type type=Drop)
 
void acceptProposedAction ()
 
Qt::DropAction dropAction () const
 
Qt::KeyboardModifiers keyboardModifiers () const
 
const QMimeDatamimeData () const
 
Qt::MouseButtons mouseButtons () const
 
QPoint pos () const
 
const QPointFposF () const
 
Qt::DropActions possibleActions () const
 
Qt::DropAction proposedAction () const
 
void setDropAction (Qt::DropAction action)
 
QObjectsource () const
 
- Public Methods inherited from QEvent
 QEvent (const QEvent &other)
 
 QEvent (Type type)
 
virtual ~QEvent ()
 
void accept ()
 
void ignore ()
 
bool isAccepted () const
 
QEvent & operator= (const QEvent &other)
 
void setAccepted (bool accepted)
 
bool spontaneous () const
 
Type type () const
 

Additional Inherited Members

- Public Types inherited from QEvent
enum  Type
 
- Static Public Methods inherited from QEvent
static int registerEventType (int hint=-1)
 

Detailed Description

The QDragEnterEvent class provides an event which is sent to a widget when a drag and drop action enters it.

A widget must accept this event in order to receive the drag move events that are sent while the drag and drop action is in progress. The drag enter event is always immediately followed by a drag move event. QDragEnterEvent inherits most of its functionality from QDragMoveEvent, which in turn inherits most of its functionality from QDropEvent.

See also
QDragLeaveEvent, QDragMoveEvent, QDropEvent

Constructor & Destructor Documentation

QDragEnterEvent::QDragEnterEvent ( const QPoint point,
Qt::DropActions  actions,
const QMimeData data,
Qt::MouseButtons  buttons,
Qt::KeyboardModifiers  modifiers 
)

Constructs a QDragEnterEvent that represents a drag entering a widget at the given point with mouse and keyboard states specified by buttons and modifiers. The drag data is passed as MIME-encoded information in data. The specified actions describe the possible types of drag and drop operation which can be performed.

Warning
Do not create a QDragEnterEvent yourself since these objects rely on the CopperSpice internal state.