QImageDrag(3qt)

πŸ“¦ version 3.3.8b, in fedora 43, fedora 44

πŸ’– QImageDrag πŸ’–

okay bestie, welcome to QImageDrag(3qt) β€” the Qt 3 manual page that's literally all about yeeting images across your app πŸ’…βœ¨


🌸 NAME 🌸

QImageDrag β€” the drag and drop object for transferring images πŸ–ΌοΈπŸ¦‹


✨ SYNOPSIS ✨

#include <qdragobject.h>

Inherits QDragObject. (yes she's a nepo baby, and she ate πŸ’…)

πŸ‘‘ Public Members

QImageDrag ( QImage image, QWidget * dragSource = 0, const char * name = 0 )
QImageDrag ( QWidget * dragSource = 0, const char * name = 0 )
~QImageDrag ()
virtual void setImage ( QImage image )

⭐ Static Public Members

bool canDecode ( const QMimeSource * e )
bool decode ( const QMimeSource * e, QImage & img )
bool decode ( const QMimeSource * e, QPixmap & pm )

πŸŽ€ DESCRIPTION πŸŽ€

So like, the QImageDrag class provides a drag and drop object for transferring images. that's the whole vibe. that's her job. she drags. she drops. she's an image. iconic behavior fr fr πŸ”₯

Your images get offered up to the receiving application in multiple formats, and which formats those are is decided by Qt's output formats. so it's giving versatile, it's giving adaptable πŸ’…

Wanna know more about drag and drop in general? Go peek at the QDragObject class and the drag and drop documentation, bestie, they've got the lore πŸ“šβœ¨

See also Drag And Drop Classes. 🫢


🧚 MEMBER FUNCTION DOCUMENTATION 🧚

πŸ“ QImageDrag::QImageDrag ( QImage image, QWidget * dragSource = 0, const char * name = 0 )

Constructs an image drag object and sets its data to image. dragSource must be the drag source; name is the object name. slay, one constructor, fully loaded 🌈

πŸ“ QImageDrag::QImageDrag ( QWidget * dragSource = 0, const char * name = 0 )

Constructs a default image drag object. dragSource must be the drag source; name is the object name. no image yet, just vibes ✨ (you'll fix that later, don't worry)

πŸ“ QImageDrag::~QImageDrag ()

Destroys the image drag object and frees up all allocated resources. she's leaving, and she's taking her mess with her πŸ’€πŸ§Ή

πŸ“ bool QImageDrag::canDecode ( const QMimeSource * e ) [static]

Returns TRUE if the information in mime source e can be decoded into an image; otherwise returns FALSE. so basically it's the vibe check πŸ‘€ β€” can we work with this or not?

See also decode().

Example: desktop/desktop.cpp.

πŸ“ bool QImageDrag::decode ( const QMimeSource * e, QImage & img ) [static]

Attempts to decode the dropped information in mime source e into img. Returns TRUE if successful; otherwise returns FALSE. fingers crossed bestie 🀞

See also canDecode().

Example: desktop/desktop.cpp.

πŸ“ bool QImageDrag::decode ( const QMimeSource * e, QPixmap & pm ) [static]

This is an overloaded member function, provided for convenience. It behaves essentially like the above function. (she's the sequel, same energy, different type πŸ’…)

Attempts to decode the dropped information in mime source e into pixmap pm. Returns TRUE if successful; otherwise returns FALSE.

This is a convenience function that converts to a QPixmap via a QImage. so like, the scenic route but make it efficient πŸš—βœ¨

See also canDecode().

πŸ“ void QImageDrag::setImage ( QImage image ) [virtual]

Sets the image to be dragged to image. You will need to call this if you did not pass the image during construction. yes bestie, this is your plan B and honestly? she serves 🫢


🌈 SEE ALSO 🌈


Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement.


πŸ’œ AUTHOR πŸ’œ

Generated automatically from the source code. (no cap, no human author, the code just manifested her ✨)


😭 BUGS 😭

If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. 🫢 (fr fr, good bug reports are the love language of maintainers)

The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. (so like, this page is a little treat, not the canon text, iykyk πŸ‘€)

If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qimagedrag.3qt) and the Qt version (3.3.8). don't be shy, tell them exactly which page and which version, they need the receipts πŸ§ΎπŸ’…


ok that's the whole page bestie, go forth and drag those images πŸ’–πŸ¦‹

and that's a wrap!! this icon was brought to you by Trolltech AS, dated 2 February 2007, and it's living in the Qt 3.3.8 era β€” she's vintage, she's thriving, she's QImageDrag(3qt) periodt πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from