penstyledelegate.h
来自「Qt4源代码,详细介绍了Qt4编程中的范例」· C头文件 代码 · 共 35 行
H
35 行
//// C++ Interface: penstyledelegate//// Description: ////// Author: zeki <czm@zeki>, (C) 2007//// Copyright: See COPYING file that comes with this distribution////#ifndef QPENSTYLEDELEGATE_H#define QPENSTYLEDELEGATE_H#include <QtGui>class QPenStyleDelegate : public QAbstractItemDelegate{ Q_OBJECTpublic: QPenStyleDelegate(QObject *parent = 0); // painting void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const; QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?