www.pudn.com > treeView.rar > tree.h, change:2011-03-11,size:400b


#ifndef TREE_H 
#define TREE_H 
 
#include <QTreeView> 
#include <QStandardItemModel> 
class Tree : public QTreeView 
{ 
public: 
    Tree(); 
    QStandardItemModel *model; 
    void drawBranches(QPainter *painter, const QRect &rect, const QModelIndex &index) const; 
    void drawRow(QPainter *painter, const QStyleOptionViewItem &options, const QModelIndex &index) const; 
}; 
 
#endif // TREE_H