The QTextDrag provides a drag-and-drop object for transferring plain text. More...
#include <qdragobject.h>
Inherits QStoredDrag.
Plain text is defined as single- or multi-line US-ASCII or an unspecified 8-bit character set.
Qt provides no built-in mechanism for delivering only single-line or only US-ASCII text.
Drag&Drop text does not have a NUL terminator when it is dropped onto the target.
For detailed information about drag-and-drop, see the QDragObject class.
Creates a default text drag object. dragSource must be the drag source, name is the object name.
Creates a text drag object and sets it to text. dragSource must be the drag source, name is the object name.
Destroys the text drag object and frees all allocated resources.
[static]
Returns TRUE if the information in e can be decoded into a QString.
See also: decode().
[static]
Attempts to decode the dropped information in e into str, returning TRUE if successful.
See also: decode().
Sets the text to be dragged. You will need to call this if you did not pass the text during construction.
Search the documentation, FAQ, qt-interest archive and more (uses
www.troll.no):
This file is part of the Qt toolkit, copyright © 1995-98 Troll Tech, all rights reserved.
It was generated from the following files:
Copyright © 1998 Troll Tech | Trademarks | Qt version 1.42
|