Q3ImageDrag Class ReferenceThe Q3ImageDrag class provides a drag and drop object for transferring images. Далее... #include <Q3ImageDrag> Данный класс является частью библиотеки поддержки Qt 3. Он предоставлен для поддержки ранее написанного кода. Мы настоятельно не рекомендуем использовать этот класс в новом коде. Для получения дополнительной информации смотрите Портирование на Qt 4. 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. Описание функций-членов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(). QByteArray Q3ImageDrag::encodedData ( const char * fmt ) const [virtual]Переопределено из QMimeSource::encodedData(). const char * Q3ImageDrag::format ( int i ) const [virtual]Переопределено из QMimeSource::format(). 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. |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |