Q3IconDragItem Class

The Q3IconDragItem class encapsulates a drag item. More...

Header: #include <Q3IconDragItem>

Public Functions

virtual ~Q3IconDragItem()
virtual QByteArray data() const
virtual void setData(const QByteArray & d)

Detailed Description

The Q3IconDragItem class encapsulates a drag item.

The Q3IconDrag class uses a list of Q3IconDragItems to support drag and drop operations.

In practice a Q3IconDragItem object (or an object of a class derived from Q3IconDragItem) is created for each icon view item which is dragged. Each of these Q3IconDragItems is stored in a Q3IconDrag object.

See Q3IconView::dragObject() for more information.

Member Function Documentation


Constructs a Q3IconDragItem with no data.

[virtual] Q3IconDragItem::~Q3IconDragItem()


[virtual] QByteArray Q3IconDragItem::data() const

Returns the data contained in the Q3IconDragItem.

See also setData().

[virtual] void Q3IconDragItem::setData(const QByteArray & d)

Sets the data for the Q3IconDragItem to the data stored in the QByteArray d.

See also data().

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.