自定义TableMode模型,继承QAbstractTableModel,自定义数据模型,可加载1千万行大数据

上传者: 38293453 | 上传时间: 2024-02-04 10:33:57 | 文件大小: 13.64MB | 文件类型: RAR
自定义TableMode模型,继承QAbstractTableModel,自定义数据模型。 可以很快得加载完1000万行大数据,并且占用的内存也不大,可加载1千万行大数. 使用QVector作为模型的底层数据结构存储数据,其内存占用与QList相当,尾部追加插入耗时与QList相当,但头部插入比QList耗时较多 QList m_itemList;

文件下载

资源详情

[{"title":"( 49 个子文件 13.64MB ) 自定义TableMode模型,继承QAbstractTableModel,自定义数据模型,可加载1千万行大数据","children":[{"title":"TestQTableView3","children":[{"title":"TestQTableView3.h <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"MyTableModel.cpp <span style='color:#111;'> 3.38KB </span>","children":null,"spread":false},{"title":"Widget.cpp <span style='color:#111;'> 4.80KB </span>","children":null,"spread":false},{"title":"Widget.h <span style='color:#111;'> 544B </span>","children":null,"spread":false},{"title":"ReceiverTableData.txt <span style='color:#111;'> 28.50MB </span>","children":null,"spread":false},{"title":"ReceiverTableData16.txt <span style='color:#111;'> 405B </span>","children":null,"spread":false},{"title":"TestQTableView3.vcxproj.user <span style='color:#111;'> 165B </span>","children":null,"spread":false},{"title":"MyTableModel.h <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 199B </span>","children":null,"spread":false},{"title":"x64","children":[{"title":"Release","children":[{"title":"qmake","children":[{"title":"qtvars_x64_Release.props <span style='color:#111;'> 3.92KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Debug","children":[{"title":"vc141.pdb <span style='color:#111;'> 2.09MB </span>","children":null,"spread":false},{"title":"qmake","children":[{"title":"qtvars_x64_Debug.props <span style='color:#111;'> 3.90KB </span>","children":null,"spread":false}],"spread":false},{"title":"uic","children":[{"title":"ui_Widget.h <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false},{"title":"ui_TestQTableView3.h <span style='color:#111;'> 2.29KB </span>","children":null,"spread":false}],"spread":false},{"title":"moc_Widget.obj <span style='color:#111;'> 98.89KB </span>","children":null,"spread":false},{"title":"moc","children":[{"title":"moc_TestQTableView3.cpp <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false},{"title":"moc_MyTableModel.cpp <span style='color:#111;'> 2.75KB </span>","children":null,"spread":false},{"title":"moc_Widget.cpp <span style='color:#111;'> 3.96KB </span>","children":null,"spread":false}],"spread":false},{"title":"qrc_TestQTableView3.obj <span style='color:#111;'> 6.40KB </span>","children":null,"spread":false},{"title":"moc_MyTableModel.obj <span style='color:#111;'> 83.09KB </span>","children":null,"spread":false},{"title":"MyTableModel.obj <span style='color:#111;'> 251.25KB </span>","children":null,"spread":false},{"title":"Widget.obj <span style='color:#111;'> 457.80KB </span>","children":null,"spread":false},{"title":"qt_work.log <span style='color:#111;'> 2.60KB </span>","children":null,"spread":false},{"title":"TestQTableView3.tlog","children":[{"title":"moc.read.1u.tlog <span style='color:#111;'> 374B </span>","children":null,"spread":false},{"title":"TestQTableView3.write.1u.tlog <span style='color:#111;'> 8.01KB </span>","children":null,"spread":false},{"title":"CL.write.1.tlog <span style='color:#111;'> 4.59KB </span>","children":null,"spread":false},{"title":"uic.write.1u.tlog <span style='color:#111;'> 566B </span>","children":null,"spread":false},{"title":"moc.write.1u.tlog <span style='color:#111;'> 866B </span>","children":null,"spread":false},{"title":"rcc.read.1u.tlog <span style='color:#111;'> 138B </span>","children":null,"spread":false},{"title":"rcc.write.1u.tlog <span style='color:#111;'> 310B </span>","children":null,"spread":false},{"title":"TestQTableView3.lastbuildstate <span style='color:#111;'> 203B </span>","children":null,"spread":false},{"title":"CL.command.1.tlog <span style='color:#111;'> 26.62KB </span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'> 6.49KB </span>","children":null,"spread":false},{"title":"link.read.1.tlog <span style='color:#111;'> 5.19KB </span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'> 1.51KB </span>","children":null,"spread":false},{"title":"uic.read.1u.tlog <span style='color:#111;'> 252B </span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'> 264.21KB </span>","children":null,"spread":false}],"spread":false},{"title":"moc_TestQTableView3.obj <span style='color:#111;'> 83.43KB </span>","children":null,"spread":false},{"title":"TestQTableView3.obj <span style='color:#111;'> 125.34KB </span>","children":null,"spread":false},{"title":"rcc","children":[{"title":"qrc_TestQTableView3.cpp <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false}],"spread":false},{"title":"main.obj <span style='color:#111;'> 97.36KB </span>","children":null,"spread":false},{"title":"TestQTableView3.log <span style='color:#111;'> 308B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"TestQTableView3.ui <span style='color:#111;'> 830B </span>","children":null,"spread":false},{"title":"TestQTableView3.qrc <span style='color:#111;'> 75B </span>","children":null,"spread":false},{"title":"TestQTableView3.vcxproj.filters <span style='color:#111;'> 2.16KB </span>","children":null,"spread":false},{"title":"ReceiverTableData10000000.txt <span style='color:#111;'> 294.58MB </span>","children":null,"spread":false},{"title":"TestQTableView3.vcxproj <span style='color:#111;'> 5.09KB </span>","children":null,"spread":false},{"title":"Resources","children":null,"spread":false},{"title":"TestQTableView3.cpp <span style='color:#111;'> 133B </span>","children":null,"spread":false},{"title":"Widget.ui <span style='color:#111;'> 518B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明