QIconDragItem(3qt)

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

πŸ’– 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 () const
  • virtual 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.cpp
  • iconview/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 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