Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions

QIconDragItem Class Reference

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

#include <QIconDragItem>

This class is part of the Qt 3 compatibility library. It is provided to keep old source code working. We strongly advise against using it in new code.

Public Functions


Detailed Description

The QIconDragItem class encapsulates a drag item.

The QIconDrag class uses a list of QIconDragItems to support drag and drop operations.

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

See QIconView::dragObject() for more information.

See the fileiconview/qfileiconview.cpp and iconview/simple_dd/main.cpp examples.


Member Function Documentation

QIconDragItem::QIconDragItem ()

Constructs a QIconDragItem with no data.

QIconDragItem::~QIconDragItem ()   [virtual]

Destructor.

QByteArray QIconDragItem::data () const   [virtual]

Returns the data contained in the QIconDragItem.

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

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


Copyright © 2004 Trolltech. Trademarks
Qt 4.0.0-tp2