Eneboo - Documentación para desarrolladores
Métodos públicos | Atributos protegidos
Referencia de la Clase QDragMoveEvent

The QDragMoveEvent class provides an event which is sent while a drag and drop is in progress. Más...

#include <qevent.h>

Diagrama de herencias de QDragMoveEvent
QDropEvent QDropEvent QMimeSource QEvent QMimeSource QEvent QMimeSource QEvent QMimeSource QEvent QDragEnterEvent QDragEnterEvent

Lista de todos los miembros.

Métodos públicos

 QDragMoveEvent (const QPoint &pos, Type typ=DragMove)
QRect answerRect () const
void accept (bool y=TRUE)
void accept (const QRect &r)
void ignore (const QRect &r)
void ignore ()
 QDragMoveEvent (const QPoint &pos, Type typ=DragMove)
QRect answerRect () const
void accept (bool y=TRUE)
void accept (const QRect &r)
void ignore (const QRect &r)
void ignore ()

Atributos protegidos

QRect rect

Descripción detallada

The QDragMoveEvent class provides an event which is sent while a drag and drop is in progress.

When a widget accepts drop events, it will receive this event repeatedly while the drag is within the widget's boundaries. The widget should examine the event to see what data it provides, and accept() the drop if appropriate.

Note that this class inherits most of its functionality from QDropEvent.


Documentación del constructor y destructor

QDragMoveEvent::QDragMoveEvent ( const QPoint pos,
Type  type = DragMove 
) [inline]

Creates a QDragMoveEvent for which the mouse is at point pos, and the event is of type type.

Atención:
Do not create a QDragMoveEvent yourself since these objects rely on Qt's internal state.
QDragMoveEvent::QDragMoveEvent ( const QPoint pos,
Type  typ = DragMove 
) [inline]

Documentación de las funciones miembro

void QDragMoveEvent::accept ( bool  y = TRUE) [inline]

Reimplementado de QDropEvent.

void QDragMoveEvent::accept ( const QRect r) [inline]
void QDragMoveEvent::accept ( const QRect r) [inline]

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

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

void QDragMoveEvent::accept ( bool  y = TRUE) [inline]

Call this function to indicate whether the event provided data which your widget processed. Set y to TRUE (the default) if your widget could process the data, otherwise set y to FALSE. To get the data, use encodedData(), or preferably, the decode() methods of existing QDragObject subclasses, such as QTextDrag::decode(), or your own subclasses.

Ver también:
acceptAction()

Reimplementado de QDropEvent.

QRect QDragMoveEvent::answerRect ( ) const [inline]

Returns the rectangle for which the acceptance of the move event applies.

QRect QDragMoveEvent::answerRect ( ) const [inline]
void QDragMoveEvent::ignore ( ) [inline]

Reimplementado de QDropEvent.

void QDragMoveEvent::ignore ( ) [inline]

The opposite of accept(), i.e. you have ignored the drop event.

Reimplementado de QDropEvent.

void QDragMoveEvent::ignore ( const QRect r) [inline]

The opposite of accept(const QRect&), i.e. says that moves within rectangle r are not acceptable (will be ignored).

void QDragMoveEvent::ignore ( const QRect r) [inline]

Documentación de los datos miembro


La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'