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

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

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

__NOTOC__

Image:qt-logo.png

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

Image:trolltech-logo.png

Содержание

[править] Q3StoredDrag Class Reference
[ Qt3Support module]

The Q3StoredDrag class provides a simple stored-value drag object for arbitrary MIME data. Далее...

 #include <Q3StoredDrag>

This class is part of the Qt 3 support library. It is provided to keep old source code working. Мы настоятельно не рекомендуем использовать этот класс в новом коде. See Porting to Qt 4 for more information.

Inherits Q3DragObject.

Inherited by Q3ColorDrag and Q3UriDrag.

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

  • 9 public functions inherited from Q3DragObject
  • 29 открытых функций, унаследованных от QObject
  • 3 public functions inherited from QMimeSource

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

  • 1 свойство, унаследованное от QObject
  • 1 открытый слот, унаследованный от QObject
  • 1 сигнал, унаследованный от QObject
  • 1 static public member inherited from Q3DragObject
  • 5 статических открытых членов, унаследованных от QObject
  • 1 protected function inherited from Q3DragObject
  • 7 защищенных функций, унаследованных от QObject

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

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.


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

[править]
Q3StoredDrag::Q3StoredDrag ( const char * mimeType, QWidget * dragSource = 0, const char * name = 0 )

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.

[править]
Q3StoredDrag::~Q3StoredDrag ()

Destroys the drag object.

[править]
QByteArray Q3StoredDrag::encodedData ( const char * format ) const [virtual]

Returns the stored data in the format given.

Reimplemented from QMimeSource.

See also setEncodedData().

[править]
void Q3StoredDrag::setEncodedData ( const QByteArray & data ) [virtual]

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().



Copyright © 2007 Trolltech Trademarks
Qt 4.3.2