![]() |
Главная · Все классы · Основные классы · Классы по группам · Модули · Функции | ![]() |
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.
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.
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.
Constructs a default image drag object with the given name. The dragSource is the widget that the drag operation started from.
Destroys the image drag object.
Returns true if the information in the MIME source can be decoded into an image; otherwise returns false.
See also decode().
Decode the dropped information in the MIME source into the image. Возвращает true в случае успеха; при неудаче возвращается false.
See also canDecode().
Это перегруженная функция, предоставленная для удобства.
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().
Sets the image to be dragged. You will need to call this if you did not pass the image during construction.
Copyright © 2008 Trolltech | Торговые марки | Qt 4.3.5 |