Qt:Документация 4.3.2/qdragenterevent

Материал из Wiki.crossplatform.ru

Перейти к: навигация, поиск
40px Внимание: Актуальная версия перевода документации находится здесь

__NOTOC__

Image:qt-logo.png

Главная · Все классы · Основные классы · Классы по группам · Модули · Функции

Image:trolltech-logo.png

Содержание

[править] QDragEnterEvent Class Reference
[модуль QtGui ]

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

 #include <QDragEnterEvent>

Inherits QDragMoveEvent.

[править] Открытые функции

  • QDragEnterEvent ( const QPoint & point, Qt::DropActions actions, const QMimeData * data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers )
  • 5 открытых функций унаследованных от QDragMoveEvent
  • 10 открытых функций унаследованных от QDropEvent
  • 6 открытых функций унаследованных от QEvent
  • 3 открытых функций унаследованных от QMimeSource

[править] Дополнительные унаследованные члены

  • 1 свойство унаследованное от QEvent

[править] Подробное описание

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, and QDropEvent.


[править] Описание функций-членов

[править]
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, and the specified actions describe the possible types of drag and drop operation that can be performed.

Warning: Do not create a QDragEnterEvent yourself since these objects rely on Qt's internal state.


Copyright © 2007 Trolltech Trademarks
Qt 4.3.2