⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qicondrag.3qt

📁 Qt/Embedded是一个多平台的C++图形用户界面应用程序框架
💻 3QT
字号:
.TH QIconDrag 3qt "10 November 2000" "Trolltech AS" \" -*- nroff -*-.\" Copyright 1992-2000 Trolltech AS.  All rights reserved.  See the.\" license file included in the distribution for a complete license.\" statement..\".ad l.nh.SH NAMEQIconDrag \- The drag object which is used for moving items in the iconview<h1 align=center>QIconDrag Class Reference.br<small>[ iconview module ]</small></h1>.br.PP\fC#include <qiconview.h>\fR.PPInherits QDragObject..PP.SS "Public Members".in +1c.ti -1c.BI "virtual \fB~QIconDrag\fR () ".br.ti -1c.BI "void \fBappend\fR ( const QIconDragItem & " "item" ", const QRect & " "pr" ", const QRect & tr ) ".br.ti -1c.BI "virtual QByteArray \fBencodedData\fR ( const char * mime ) const".br.in -1c.SS "Static Public Members".in +1c.ti -1c.BI "bool \fBcanDecode\fR ( QMimeSource * e ) ".br.in -1c.SH DESCRIPTIONThe QIconDrag class is the drag object which is used for moving items in the iconview.PPThe QIconDrag is the drag object which is used for moving items in the iconview. The QIconDrag stores exact informations about the positions of the items, which are dragged, so that each iconview is able to draw drag shapes in correct positions. Also the data of each dragged item is stored here..PPIf you want to use extended DnD functionality of the QIconView, normally it's enough to just create a QIconDrag object in QIconView::dragObject(). Then create for each item which should be dragged a QIconDragItem and set the data it represents with QIconDragItem::setData() and add this item to the drag object using append()..PPIf you want to offer the data in other mime-types too, derive a class from this and implement the needed encoding and decoding here..PPAn example, how to implement this, is in the QtFileIconView example (qt/examples/qfileiconview/qfileiconview.h and qt/examples/qfileiconview/qfileiconview.cpp)..SH MEMBER FUNCTION DOCUMENTATION.SH "QIconDrag::QIconDrag ( QWidget * dragSource, const char * name = 0 )"Reimplemented for internal reasons; the API is not affected..SH "QIconDrag::~QIconDrag () \fC[virtual]\fR"Destructor..SH "void QIconDrag::append ( const QIconDragItem & i, const QRect & pr, const QRect & tr )"Appends an icon drag item which should be stored in this dragobject and the geometry of it..PPSee also QIconDragItem..SH "bool QIconDrag::canDecode ( QMimeSource * e ) \fC[static]\fR"Returns TRUE if \fIe\fR can be decoded by the QIconDrag, else FALSE..SH "QByteArray QIconDrag::encodedData ( const char * mime ) const \fC[virtual]\fR"Returns the encoded data of the drag object if \fImime\fR is application/x-qiconlist..SH "const char* QIconDrag::format ( int i ) const \fC[virtual]\fR"Reimplemented for internal reasons; the API is not affected..SH "SEE ALSO".BR http://doc.trolltech.com/qicondrag.html.SH COPYRIGHTCopyright 1992-2000 Trolltech AS, http://www.trolltech.com/.  See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -