Q3StoredDrag Class Reference
|
Q3StoredDrag ( const char * mimeType, QWidget * dragSource = 0, const char * name = 0 ) | |
~Q3StoredDrag () | |
virtual void | setEncodedData ( const QByteArray & data ) |
virtual QByteArray | encodedData ( const char * format ) const |
virtual const char * | format ( int i ) const |
The Q3StoredDrag class provides a simple stored-value drag object for arbitrary MIME data.
When a block of data has only one representation, you can use a Q3StoredDrag to hold it.
For more information about drag and drop, see the Q3DragObject class and the drag and drop documentation.
Constructs a Q3StoredDrag. The dragSource and name are passed to the Q3DragObject constructor, and the format is set to mimeType.
The data will be unset. Use setEncodedData() to set it.
Destroys the drag object.
Переопределено из QMimeSource::encodedData().
Returns the stored data in the format given.
See also setEncodedData().
Переопределено из QMimeSource::format().
Sets the encoded data of this drag object. The encoded data is delivered to drop sites; it must be in a strictly defined and portable format.
The drag object can't be dropped (by the user) until this function has been called.
See also encodedData().
Авторские права © 2010 Nokia Corporation и/или её дочерние компании | Торговые марки | Qt 4.6.4 |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |