Logo Search packages:      
Sourcecode: qt4-x11 version File versions

Qt::DropAction QDrag::exec ( Qt::DropActions  supportedActions = Qt::MoveAction  ) 

Since:
4.3
Starts the drag and drop operation and returns a value indicating the requested drop action when it is completed. The drop actions that the user can choose from are specified in supportedActions. The default proposed action will be selected among the allowed actions in the following order: Move, Copy and Link.

{Note:} On Linux and Mac OS X, the drag and drop operation can take some time, but this function does not block the event loop. Other events are still delivered to the application while the operation is performed. On Windows, the Qt event loop is blocked while during the operation.

Definition at line 238 of file qdrag.cpp.

Referenced by QListView::internalDrag(), DragWidget::mouseMoveEvent(), MainWindow::mousePressEvent(), MyWidget::mousePressEvent(), DragLabel::mousePressEvent(), and QAbstractItemView::startDrag().

{
    return exec(supportedActions, Qt::IgnoreAction);
}


Generated by  Doxygen 1.6.0   Back to index