1QImageDrag(3qt) QImageDrag(3qt)
2
3
4
6 QImageDrag - Drag and drop object for transferring images
7
9 #include <qdragobject.h>
10
11 Inherits QDragObject.
12
13 Public Members
14 QImageDrag ( QImage image, QWidget * dragSource = 0, const char * name
15 = 0 )
16 QImageDrag ( QWidget * dragSource = 0, const char * name = 0 )
17 ~QImageDrag ()
18 virtual void setImage ( QImage image )
19
20 Static Public Members
21 bool canDecode ( const QMimeSource * e )
22 bool decode ( const QMimeSource * e, QImage & img )
23 bool decode ( const QMimeSource * e, QPixmap & pm )
24
26 The QImageDrag class provides a drag and drop object for transferring
27 images.
28
29 Images are offered to the receiving application in multiple formats,
30 determined by Qt's output formats.
31
32 For more information about drag and drop, see the QDragObject class and
33 the drag and drop documentation.
34
35 See also Drag And Drop Classes.
36
39 name = 0 )
40 Constructs an image drag object and sets its data to image. dragSource
41 must be the drag source; name is the object name.
42
44 Constructs a default image drag object. dragSource must be the drag
45 source; name is the object name.
46
48 Destroys the image drag object and frees up all allocated resources.
49
51 Returns TRUE if the information in mime source e can be decoded into an
52 image; otherwise returns FALSE.
53
54 See also decode().
55
56 Example: desktop/desktop.cpp.
57
59 Attempts to decode the dropped information in mime source e into img.
60 Returns TRUE if successful; otherwise returns FALSE.
61
62 See also canDecode().
63
64 Example: desktop/desktop.cpp.
65
67 This is an overloaded member function, provided for convenience. It
68 behaves essentially like the above function.
69
70 Attempts to decode the dropped information in mime source e into pixmap
71 pm. Returns TRUE if successful; otherwise returns FALSE.
72
73 This is a convenience function that converts to a QPixmap via a QImage.
74
75 See also canDecode().
76
78 Sets the image to be dragged to image. You will need to call this if
79 you did not pass the image during construction.
80
81
83 http://doc.trolltech.com/qimagedrag.html
84 http://www.trolltech.com/faq/tech.html
85
87 Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
88 license file included in the distribution for a complete license
89 statement.
90
92 Generated automatically from the source code.
93
95 If you find a bug in Qt, please report it as described in
96 http://doc.trolltech.com/bughowto.html. Good bug reports help us to
97 help you. Thank you.
98
99 The definitive Qt documentation is provided in HTML format; it is
100 located at $QTDIR/doc/html and can be read using Qt Assistant or with a
101 web browser. This man page is provided as a convenience for those users
102 who prefer man pages, although this format is not officially supported
103 by Trolltech.
104
105 If you find errors in this manual page, please report them to qt-
106 bugs@trolltech.com. Please include the name of the manual page
107 (qimagedrag.3qt) and the Qt version (3.3.8).
108
109
110
111Trolltech AS 2 February 2007 QImageDrag(3qt)