QStoredDrag(3qt)
π 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
QUriDragandQColorDrag. (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 π
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
- fedora 43: qt3-devel-docs 3.3.8b-102.fc43 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- fedora 44: qt3-devel-docs 3.3.8b-103.fc44 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms