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

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

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

__NOTOC__

Image:qt-logo.png

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

Image:trolltech-logo.png

Содержание

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

The Q3ImageDrag class provides a drag and drop object for transferring images. Далее...

 #include <Q3ImageDrag>

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.

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

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

[править] Статические открытые члены

  • bool canDecode ( const QMimeSource * source )
  • bool decode ( const QMimeSource * source, QImage & image )
  • bool decode ( const QMimeSource * source, QPixmap & pixmap )
  • 1 static public member inherited from Q3DragObject
  • 5 статических открытых членов, унаследованных от QObject

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

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

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

The Q3ImageDrag class provides a drag and drop object for transferring images.

Images are offered to the receiving application in multiple formats, determined by Qt's output formats.


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

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

Constructs an image drag object with the given name, and sets its data to image. The dragSource is the widget that the drag operation started from.

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

Constructs a default image drag object with the given name. The dragSource is the widget that the drag operation started from.

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

Destroys the image drag object.

[править]
bool Q3ImageDrag::canDecode ( const QMimeSource * source ) [static]

Returns true if the information in the MIME source can be decoded into an image; otherwise returns false.

See also decode().

[править]
bool Q3ImageDrag::decode ( const QMimeSource * source, QImage & image ) [static]

Decode the dropped information in the MIME source into the image. Возвращает true в случае успеха; при неудаче возвращается false.

See also canDecode().

[править]
bool Q3ImageDrag::decode ( const QMimeSource * source, QPixmap & pixmap ) [static]

Эта перегруженная функция предоставлена для удобства.

Decodes the dropped information in the MIME source into the pixmap. Возвращает true в случае успеха; при неудаче возвращается false.

This is a convenience function that converts the information to a QPixmap via a QImage.

See also canDecode().

[править]
void Q3ImageDrag::setImage ( QImage image ) [virtual]

Sets the image to be dragged. You will need to call this if you did not pass the image during construction.



Copyright © 2007 Trolltech Trademarks
Qt 4.3.2