QIconDragItem(3qt)
π QIconDragItem β the manual page (3qt) π
okay bestie, welcome to the QIconDragItem(3qt) page, you're gonna eat this up, it's short and sweet and honestly kind of iconic β¨
πΈ NAME πΈ
QIconDragItem β it wraps up a drag item all nice and cozy, like a little gift bag for your drag data π
β¨ SYNOPSIS β¨
#include <qiconview.h>
π«Ά Public Members
QIconDragItem ()virtual ~QIconDragItem ()virtual QByteArray data () constvirtual void setData ( const QByteArray & d )
π DESCRIPTION π
So like, the QIconDragItem class encapsulates a drag item. That's the whole vibe. It's the lil container, the holder, the main character of holding one thing π
And QIconDrag? She uses a list of QIconDragItems to support drag and drop operations. Slay, delegation. π
In practice, a QIconDragItem object (or an object of a class derived from QIconDragItem, if you're feeling fancy and subclassy) gets created for each icon view item which is dragged. Every single one of these QIconDragItems gets stored in a QIconDrag object. One item dragged β one QIconDragItem β dropped into the QIconDrag. No cap, that's just how the family tree works. π³
Wanna know more? Go peek at QIconView::dragObject() β that's where the tea is π΅
Also go look at the examples, they're lowkey adorable:
fileiconview/qfileiconview.cppiconview/simple_dd/main.cpp
See also Drag And Drop Classes. iykyk π¦
β MEMBER FUNCTION DOCUMENTATION β
QIconDragItem::QIconDragItem ()
Constructs a QIconDragItem with no data. Empty. Blank slate. A fresh face, a clean canvas, a new semester energy π
QIconDragItem::~QIconDragItem () [virtual]
Destructor. She's done, she's logging off, she's closing the tab. bye bestie π
QByteArray QIconDragItem::data () const [virtual]
Returns the data contained in the QIconDragItem. That's it, that's the function, she gives you the goods π
void QIconDragItem::setData ( const QByteArray & d ) [virtual]
Sets the data for the QIconDragItem to the data stored in the QByteArray d. Put it in the bag, zip it up, gorgeous π«Ά
Example: fileiconview/qfileiconview.cpp.
π 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. (Read the license, bestie, it's literally right there π)
π¦ AUTHOR π¦
Generated automatically from the source code. Not a human's pen, just a machine doing its little thing π€β¨
π 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, a good bug report is a love letter, fr fr π)
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, cute bonus content, not the canon text π)
If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qicondragitem.3qt) and the Qt version (3.3.8). Please, we're begging, include both, it makes everything so much easier π
π okay that's the whole page, you read all of it, that's main character energy right there. Now go subclass something and make it cute. π
Trolltech AS, 2 February 2007, Qt version 3.3.8 β and that's the sign-off, mwah, drink water, QIconDragItem(3qt) out π
πΈ
π¦ 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