1QStoredDrag(3qt)                                              QStoredDrag(3qt)
2
3
4

NAME

6       QStoredDrag - Simple stored-value drag object for arbitrary MIME data
7

SYNOPSIS

9       #include <qdragobject.h>
10
11       Inherits QDragObject.
12
13       Inherited by QUriDrag and QColorDrag.
14
15   Public Members
16       QStoredDrag ( const char * mimeType, QWidget * dragSource = 0, const
17           char * name = 0 )
18       ~QStoredDrag ()
19       virtual void setEncodedData ( const QByteArray & encodedData )
20       virtual QByteArray encodedData ( const char * m ) const
21

DESCRIPTION

23       The QStoredDrag class provides a simple stored-value drag object for
24       arbitrary MIME data.
25
26       When a block of data has only one representation, you can use a
27       QStoredDrag to hold it.
28
29       For more information about drag and drop, see the QDragObject class and
30       the drag and drop documentation.
31
32       See also Drag And Drop Classes.
33

MEMBER FUNCTION DOCUMENTATION

QStoredDrag::QStoredDrag ( const char * mimeType, QWidget * dragSource = 0,

36       const char * name = 0 )
37       Constructs a QStoredDrag. The dragSource and name are passed to the
38       QDragObject constructor, and the format is set to mimeType.
39
40       The data will be unset. Use setEncodedData() to set it.
41

QStoredDrag::~QStoredDrag ()

43       Destroys the drag object and frees up all allocated resources.
44

QByteArray QStoredDrag::encodedData ( const char * m ) const [virtual]

46       Returns the stored data. m contains the data's format.
47
48       See also setEncodedData().
49
50       Reimplemented from QMimeSource.
51

void QStoredDrag::setEncodedData ( const QByteArray & encodedData ) [virtual]

53       Sets the encoded data of this drag object to encodedData. The encoded
54       data is what's delivered to the drop sites. It must be in a strictly
55       defined and portable format.
56
57       The drag object can't be dropped (by the user) until this function has
58       been called.
59
60

SEE ALSO

62       http://doc.trolltech.com/qstoreddrag.html
63       http://www.trolltech.com/faq/tech.html
64
66       Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com.  See the
67       license file included in the distribution for a complete license
68       statement.
69

AUTHOR

71       Generated automatically from the source code.
72

BUGS

74       If you find a bug in Qt, please report it as described in
75       http://doc.trolltech.com/bughowto.html.  Good bug reports help us to
76       help you. Thank you.
77
78       The definitive Qt documentation is provided in HTML format; it is
79       located at $QTDIR/doc/html and can be read using Qt Assistant or with a
80       web browser. This man page is provided as a convenience for those users
81       who prefer man pages, although this format is not officially supported
82       by Trolltech.
83
84       If you find errors in this manual page, please report them to qt-
85       bugs@trolltech.com.  Please include the name of the manual page
86       (qstoreddrag.3qt) and the Qt version (3.3.8).
87
88
89
90Trolltech AS                    2 February 2007               QStoredDrag(3qt)
Impressum