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

📄 qiconview-h.html

📁 qtopiaphone英文帮助,用于初学者和开发人员,初学者可以用来学习,开发人员可以用来资料查询.
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Qt Toolkit - qiconview.h include file</title><style type="text/css"><!--h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }a:link { color: #004faf; text-decoration: none }a:visited { color: #672967; text-decoration: none }body { background: white; color: black; }--></style></head><body bgcolor="#ffffff"><table width="100%"><tr><td><a href="index.html"><img width="100" height="100" src="qtlogo.png"alt="Home" border="0"><img width="100"height="100" src="face.png" alt="Home" border="0"></a><td valign="top"><div align="right"><img src="dochead.png" width="472" height="27"><br><a href="classes.html"><b>Classes</b></a>- <a href="annotated.html">Annotated</a>- <a href="hierarchy.html">Tree</a>- <a href="functions.html">Functions</a>- <a href="index.html">Home</a>- <a href="topicals.html"><b>Structure</b>  <font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" align="center" size=32>Qte</font></a></div></table><h1 align=center>qiconview.h</h1><br clear="all">This is the verbatim text of the qiconview.h include file.  It isprovided only for illustration; the copyrightremains with Trolltech.<hr><pre>/****************************************************************************** &#36;Id&#58; qt/src/iconview/qiconview.h   2.3.8   edited 2004-05-12 $**** Definition of QIconView widget class**** Created : 990707**** Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.**** This file is part of the iconview module of the Qt GUI Toolkit.**** This file may be distributed under the terms of the Q Public License** as defined by Trolltech AS of Norway and appearing in the file** LICENSE.QPL included in the packaging of this file.**** This file may be distributed and/or modified under the terms of the** GNU General Public License version 2 as published by the Free Software** Foundation and appearing in the file LICENSE.GPL included in the** packaging of this file.**** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition** licenses may use this file in accordance with the Qt Commercial License** Agreement provided with the Software.**** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.**** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for**   information about Qt Commercial License Agreements.** See http://www.trolltech.com/qpl/ for QPL licensing information.** See http://www.trolltech.com/gpl/ for GPL licensing information.**** Contact info@trolltech.com if any conditions of this licensing are** not clear to you.************************************************************************/#ifndef QICONVIEW_H#define QICONVIEW_H#ifndef QT_H#include &lt;qscrollview.h&gt;#include &lt;qiconset.h&gt;#include &lt;qstring.h&gt;#include &lt;qrect.h&gt;#include &lt;qpoint.h&gt;#include &lt;qsize.h&gt;#include &lt;qfont.h&gt;#include &lt;qlist.h&gt;#include &lt;qdragobject.h&gt;#include &lt;qstringlist.h&gt;#include &lt;qmultilineedit.h&gt;#include &lt;qbitmap.h&gt;#endif // QT_H#include &lt;qmodules.h&gt;#if !defined(QT_MODULE_ICONVIEW)#define QM_EXPORT#else#define QM_EXPORT Q_EXPORT#endif#ifndef QT_NO_ICONVIEWclass <a href="qiconview.html">QIconView</a>;class <a href="qfontmetrics.html">QFontMetrics</a>;class <a href="qpainter.html">QPainter</a>;class <a href="qmimesource.html">QMimeSource</a>;class <a href="qdragobject.html">QDragObject</a>;class <a href="qmouseevent.html">QMouseEvent</a>;class <a href="qdragenterevent.html">QDragEnterEvent</a>;class <a href="qdragmoveevent.html">QDragMoveEvent</a>;class <a href="qdragleaveevent.html">QDragLeaveEvent</a>;class <a href="qkeyevent.html">QKeyEvent</a>;class <a href="qfocusevent.html">QFocusEvent</a>;class <a href="qshowevent.html">QShowEvent</a>;class QIconViewPrivate;struct QIconViewItemPrivate;class <a href="qiconviewitem.html">QIconViewItem</a>;class QIconViewItemLineEdit;class <a href="qstringlist.html">QStringList</a>;#ifndef QT_NO_DRAGANDDROP/***************************************************************************** * * Class QIconDragItem * *****************************************************************************/class QM_EXPORT <a href="qicondragitem.html">QIconDragItem</a>{public:    QIconDragItem();    virtual ~QIconDragItem();    virtual QByteArray data() const;    virtual void setData( const QByteArray &amp;d );    bool operator== ( const QIconDragItem&amp; ) const;private:    QByteArray ba;};/***************************************************************************** * * Class QIconDrag * *****************************************************************************/struct QIconDragPrivate;class QM_EXPORT <a href="qicondrag.html">QIconDrag</a> : public <a href="qdragobject.html">QDragObject</a>{    Q_OBJECTpublic:    QIconDrag( QWidget * dragSource, const char* name = 0 );    virtual ~QIconDrag();    void append( const QIconDragItem &amp;item, const QRect &amp;pr, const QRect &amp;tr );    virtual const char* format( int i ) const;    static bool canDecode( QMimeSource* e );    virtual QByteArray encodedData( const char* mime ) const;private:    QIconDragPrivate *d;    QChar endMark;    friend class QIconView;    friend class QIconViewPrivate;};#endif/***************************************************************************** * * Class QIconViewItem * *****************************************************************************/class QIconViewToolTip;class QM_EXPORT <a href="qiconviewitem.html">QIconViewItem</a> : public <a href="qt.html">Qt</a>{    friend class QIconView;    friend class QIconViewToolTip;    friend class QIconViewItemLineEdit;public:    QIconViewItem( QIconView *parent );    QIconViewItem( QIconView *parent, QIconViewItem *after );    QIconViewItem( QIconView *parent, const QString &amp;text );    QIconViewItem( QIconView *parent, QIconViewItem *after, const QString &amp;text );    QIconViewItem( QIconView *parent, const QString &amp;text, const QPixmap &amp;icon );    QIconViewItem( QIconView *parent, QIconViewItem *after, const QString &amp;text, const QPixmap &amp;icon );    virtual ~QIconViewItem();    virtual void setRenameEnabled( bool allow );    virtual void setDragEnabled( bool allow );    virtual void setDropEnabled( bool allow );    virtual QString text() const;    virtual QPixmap *pixmap() const;    virtual QString key() const;    bool renameEnabled() const;    bool dragEnabled() const;    bool dropEnabled() const;    QIconView *iconView() const;    QIconViewItem *prevItem() const;    QIconViewItem *nextItem() const;    int index() const;    virtual void setSelected( bool s, bool cb );    virtual void setSelected( bool s );    virtual void setSelectable( bool s );    bool isSelected() const;    bool isSelectable() const;    virtual void repaint();    virtual void move( int x, int y );    virtual void moveBy( int dx, int dy );    virtual void move( const QPoint &amp;pnt );    virtual void moveBy( const QPoint &amp;pnt );    QRect rect() const;    int x() const;    int y() const;    int width() const;    int height() const;    QSize size() const;    QPoint pos() const;    QRect textRect( bool relative = TRUE ) const;    QRect pixmapRect( bool relative = TRUE ) const;    bool contains( QPoint pnt ) const;    bool intersects( QRect r ) const;    virtual bool acceptDrop( const QMimeSource *mime ) const;    void rename();    virtual int compare( QIconViewItem *i ) const;    virtual void setText( const QString &amp;text );    virtual void setPixmap( const QPixmap &amp;icon );    virtual void setText( const QString &amp;text, bool recalc, bool redraw = TRUE );    virtual void setPixmap( const QPixmap &amp;icon, bool recalc, bool redraw = TRUE );    virtual void setKey( const QString &amp;k );protected:    virtual void removeRenameBox();    virtual void calcRect( const QString &amp;text_ = QString::null );    virtual void paintItem( QPainter *p, const QColorGroup &amp;cg );    virtual void paintFocus( QPainter *p, const QColorGroup &amp;cg );#ifndef QT_NO_DRAGANDDROP    virtual void dropped( QDropEvent *e, const QValueList&lt;QIconDragItem&gt; &amp;lst );#endif    virtual void dragEntered();    virtual void dragLeft();    void setItemRect( const QRect &amp;r );    void setTextRect( const QRect &amp;r );    void setPixmapRect( const QRect &amp;r );    void calcTmpText();private:    void init( QIconViewItem *after = 0 );    void renameItem();    void cancelRenameItem();    void checkRect();    QIconView *view;    QString itemText, itemKey;    QString tmpText;    QPixmap *itemIcon;    QIconViewItem *prev, *next;    uint allow_rename : 1;    uint allow_drag : 1;    uint allow_drop : 1;

⌨️ 快捷键说明

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