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

📄 listview.h

📁 Linux下的基于X11的图形开发环境。
💻 H
字号:
#include <qlistview.h>class ListViewItem : public QListViewItem{public:    ListViewItem ( QListView * parent, const QString& name, const QString& tag )        : QListViewItem( parent, name ), _tag( tag ) {}    ListViewItem ( QListView * parent, QListViewItem * after, const QString& name, const QString& tag )        : QListViewItem( parent, after, name ), _tag( tag ) {}    virtual ~ListViewItem() {}    QString tag() { return _tag; }private:    QString _tag;};class ListView : public QListView{    Q_OBJECTpublic:    ListView( QWidget* parent = 0, const char* name = 0 );    ~ListView();    void dragEnterEvent( QDragEnterEvent * );    void dropEvent( QDropEvent * );    void mousePressEvent( QMouseEvent * );    void mouseMoveEvent( QMouseEvent * );    void mouseReleaseEvent( QMouseEvent * );private:    QPoint pressPos;    bool dragging;};

⌨️ 快捷键说明

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