QStoredDrag(3qt)

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

πŸ’– QStoredDrag β€” the 3qt manual, but make it make sense πŸ’–

okay bestie, welcome to the QStoredDrag(3qt) page. it's a Qt 3 man page, it's about drag objects, and yes we're gonna get through all of it together. grab a boba. πŸ§‹


✨ NAME ✨

QStoredDrag β€” a simple stored-value drag object for arbitrary MIME data. no cap, that's literally the whole job description. πŸŽ€


🌸 SYNOPSIS 🌸

#include <qdragobject.h>

so here's the family tree, and it's giving dynasty energy:

  • Inherits QDragObject. πŸ‘‘
  • Inherited by QUriDrag and QColorDrag. (yes they're the children, they're iconic, we love them)

🫢 Public Members

QStoredDrag ( const char * mimeType, QWidget * dragSource = 0, const char * name = 0 )
~QStoredDrag ()
virtual void setEncodedData ( const QByteArray & encodedData )
virtual QByteArray encodedData ( const char * m ) const

that's the whole public roster. four things. we stan a short list. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

The QStoredDrag class provides a simple stored-value drag object for arbitrary MIME data.

the way that this works is: when a block of data has only one representation, you can use a QStoredDrag to hold it. one vibe, one format, one drag object. that's it, that's the whole point. πŸ“

want more lore about drag and drop in general? go see the QDragObject class and the drag and drop documentation. it's all connected, iykyk.

See also: Drag And Drop Classes.


πŸŽ€ MEMBER FUNCTION DOCUMENTATION πŸŽ€

⭐ QStoredDrag::QStoredDrag ( const char * mimeType, QWidget * dragSource = 0, const char * name = 0 )

Constructs a QStoredDrag. so like β€” the dragSource and name get passed straight to the QDragObject constructor (they're not doing anything special here, they're just going up the chain, respect), and the format gets set to mimeType.

🫢 heads up bestie: the data will be unset at this point. use setEncodedData() to actually put something in it. you can't just construct and go, you gotta feed it.

⭐ QStoredDrag::~QStoredDrag ()

Destroys the drag object and frees up all allocated resources. it's the goodbye moment, but make it responsible. cleanup queen. ✨

⭐ QByteArray QStoredDrag::encodedData ( const char * m ) const β€” [virtual]

Returns the stored data. m contains the data's format. 🎁

See also: setEncodedData().

Reimplemented from QMimeSource.

⭐ void QStoredDrag::setEncodedData ( const QByteArray & encodedData ) β€” [virtual]

Sets the encoded data of this drag object to encodedData. the encoded data is what's delivered to the drop sites, so it's the actual payload, the main character of this whole operation. πŸ’–

and it must be in a strictly defined and portable format. do not freestyle the format. do not be creative with the format. be normal about the format. 🚨

πŸ’€ real talk: the drag object can't be dropped (by the user) until this function has been called. so if you skip it, your drag is just... sitting there. un-droppable. embarrassing for everyone involved. call setEncodedData(). periodt.

🌈 SEE ALSO 🌈


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

(the license file is right there in the distribution, bestie, go read it, it's giving legally binding πŸ’…)


🧚 AUTHOR 🧚

Generated automatically from the source code.

(so nobody "wrote" this, a machine did. which is honestly so valid of it.)


πŸ™ˆ 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. 🫢 (genuinely, good bug reports are the love language of open source)

the definitive Qt documentation is provided in HTML format; it's 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 the side quest, not the main quest, and that's fine πŸ’…)

if you find errors in this manual page, please report them to qt-bugs@trolltech.com. please include the name of the manual page (qstoreddrag.3qt) and the Qt version (3.3.8). no vague bug reports please, give them the receipts. πŸ”₯


okay and that's the whole page bestie!! πŸŽ‰ this absolute classic came to you from Trolltech AS, dated 2 February 2007, in that Qt 3.3.8 era β€” shoutout to the vintage software, she ate and left no crumbs. πŸ’–βœ¨πŸŽ€ stay draggable, love you, bye!! πŸ¦‹πŸ’…

πŸ“¦ where this page comes from