上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页
摘要: json文件结构形式 { "xiao1": [ { "000100": { "industryCode": "000100", "industryName": "test" } }, { "000101": { "industryCode": "000100", "industryName": "t 阅读全文
posted @ 2018-07-04 17:35 beautifulday 阅读(1061) 评论(0) 推荐(0) 编辑
摘要: void ItemModelDeletage::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const { QStyleOptionViewItem viewOption 阅读全文
posted @ 2018-07-03 15:53 beautifulday 阅读(1748) 评论(0) 推荐(0) 编辑
摘要: 在QStyledItemDelegate的paint方法里面 void MyItemModelDeletage::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const 阅读全文
posted @ 2018-07-03 10:08 beautifulday 阅读(3841) 评论(0) 推荐(0) 编辑
摘要: 一。 virtual bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole); 该方法是个虚方法,可用于继承实现 当子类实现的时候,会在什么时候调用呢? 1、比如当tableview 阅读全文
posted @ 2018-06-19 15:08 beautifulday 阅读(1583) 评论(0) 推荐(0) 编辑
摘要: window.onresize = myChart.resize; 阅读全文
posted @ 2018-05-20 17:07 beautifulday 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 设置表列头背景颜色 QHeaderView::section { background: rgb(255, 255, 127); } 阅读全文
posted @ 2018-05-11 16:25 beautifulday 阅读(3265) 评论(0) 推荐(0) 编辑
摘要: 当使用qwtplotbarchart来使用柱状图时。可以通过下面代码来设置柱状图的颜色 QwtPlotBarChart *barChart = new QwtPlotBarChart("Bar Chart" ); QwtColumnSymbol *symbol = new QwtColumnSymb 阅读全文
posted @ 2018-03-05 15:59 beautifulday 阅读(1512) 评论(0) 推荐(0) 编辑
摘要: win32:CONFIG(release, debug|release): { 阅读全文
posted @ 2018-02-02 10:37 beautifulday 阅读(2803) 评论(0) 推荐(0) 编辑
摘要: 一、首先定义数据类 [DataContract(Namespace="http://www.cninnovation.com/Services/2012")] public class RoomReservation : INotifyPropertyChanged { private int id 阅读全文
posted @ 2018-01-23 15:14 beautifulday 阅读(1109) 评论(0) 推荐(0) 编辑
摘要: 当继承某个QWT类时,有是使用O_OBJECT弘会出现问题 切记在工程文件里别忘了添加这一句 DEFINES+=QWT_DLL 阅读全文
posted @ 2018-01-09 16:13 beautifulday 阅读(349) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页