QTableWidget先去读全部的,再进行分页显示,表格固定的是一百行,每次操作对这一百行数据进行刷新,虚拟出完整表格的效果

上传者: 38293453 | 上传时间: 2023-04-14 10:30:25 | 文件大小: 14.95MB | 文件类型: RAR
qt
QTableWidget先去读全部的,再进行分页显示,表格固定的是一百行,每次操作对这一百行数据进行刷新,虚拟出完整表格的效果。 测试:QTableWidge分页显示1千万行数据,此种方法优化了文件的读取,可以快速的读取全部的文件内容,表格也只100行,占用内存较小。但是读取了全部大文件,文件占用的较大部分的内存。

文件下载

资源详情

[{"title":"( 115 个子文件 14.95MB ) QTableWidget先去读全部的,再进行分页显示,表格固定的是一百行,每次操作对这一百行数据进行刷新,虚拟出完整表格的效果","children":[{"title":"moc_LoadFileData.cpp <span style='color:#111;'> 5.46KB </span>","children":null,"spread":false},{"title":"moc_LoadFileData.cpp <span style='color:#111;'> 5.46KB </span>","children":null,"spread":false},{"title":"QCustomTableWidget.cpp <span style='color:#111;'> 5.15KB </span>","children":null,"spread":false},{"title":"moc_QCustomTableWidget.cpp <span style='color:#111;'> 4.68KB </span>","children":null,"spread":false},{"title":"moc_QCustomTableWidget.cpp <span style='color:#111;'> 4.37KB </span>","children":null,"spread":false},{"title":"moc_ScrollBar.cpp <span style='color:#111;'> 4.34KB </span>","children":null,"spread":false},{"title":"moc_ScrollBar.cpp <span style='color:#111;'> 4.34KB </span>","children":null,"spread":false},{"title":"TableWidget.cpp <span style='color:#111;'> 3.98KB </span>","children":null,"spread":false},{"title":"moc_TableWidget.cpp <span style='color:#111;'> 3.72KB </span>","children":null,"spread":false},{"title":"moc_FileFastReadLines.cpp <span style='color:#111;'> 2.80KB </span>","children":null,"spread":false},{"title":"moc_FileFastReadLines.cpp <span style='color:#111;'> 2.80KB </span>","children":null,"spread":false},{"title":"moc_TestTableWidget.cpp <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false},{"title":"moc_TestTableWidget.cpp <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false},{"title":"qrc_TestTableWidget.cpp <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"qrc_TestTableWidget.cpp <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"TestTableWidget.cpp <span style='color:#111;'> 914B </span>","children":null,"spread":false},{"title":"LoadFileData.cpp <span style='color:#111;'> 737B </span>","children":null,"spread":false},{"title":"ScrollBar.cpp <span style='color:#111;'> 472B </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 189B </span>","children":null,"spread":false},{"title":"FileCoreLib.dll <span style='color:#111;'> 87.00KB </span>","children":null,"spread":false},{"title":"FileCoreLib.dll <span style='color:#111;'> 28.00KB </span>","children":null,"spread":false},{"title":".editorconfig <span style='color:#111;'> 53B </span>","children":null,"spread":false},{"title":"TestTableWidget.exe <span style='color:#111;'> 174.00KB </span>","children":null,"spread":false},{"title":"FileCoreLib.exp <span style='color:#111;'> 7.27KB </span>","children":null,"spread":false},{"title":"FileCoreLib.exp <span style='color:#111;'> 7.27KB </span>","children":null,"spread":false},{"title":"TestTableWidget.vcxproj.filters <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 112B </span>","children":null,"spread":false},{"title":"ui_QCustomTableWidget.h <span style='color:#111;'> 2.31KB </span>","children":null,"spread":false},{"title":"ui_QCustomTableWidget.h <span style='color:#111;'> 2.31KB </span>","children":null,"spread":false},{"title":"ui_TestTableWidget.h <span style='color:#111;'> 2.29KB </span>","children":null,"spread":false},{"title":"ui_TestTableWidget.h <span style='color:#111;'> 2.29KB </span>","children":null,"spread":false},{"title":"QCustomTableWidget.h <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"FileFastReadLines.h <span style='color:#111;'> 722B </span>","children":null,"spread":false},{"title":"TableWidget.h <span style='color:#111;'> 553B </span>","children":null,"spread":false},{"title":"TestTableWidget.h <span style='color:#111;'> 460B </span>","children":null,"spread":false},{"title":"LoadFileData.h <span style='color:#111;'> 434B </span>","children":null,"spread":false},{"title":"ScrollBar.h <span style='color:#111;'> 407B </span>","children":null,"spread":false},{"title":"filecorelib_global.h <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"TestTableWidget.ilk <span style='color:#111;'> 1.87MB </span>","children":null,"spread":false},{"title":"FileCoreLib.ilk <span style='color:#111;'> 537.41KB </span>","children":null,"spread":false},{"title":"TestTableWidget.lastbuildstate <span style='color:#111;'> 208B </span>","children":null,"spread":false},{"title":"TestTableWidget.lastbuildstate <span style='color:#111;'> 206B </span>","children":null,"spread":false},{"title":"FileCoreLib.lib <span style='color:#111;'> 12.48KB </span>","children":null,"spread":false},{"title":"FileCoreLib.lib <span style='color:#111;'> 12.48KB </span>","children":null,"spread":false},{"title":"qt_work.log <span style='color:#111;'> 3.87KB </span>","children":null,"spread":false},{"title":"TestTableWidget.Build.CppClean.log <span style='color:#111;'> 3.67KB </span>","children":null,"spread":false},{"title":"qt_work.log <span style='color:#111;'> 3.48KB </span>","children":null,"spread":false},{"title":"TestTableWidget.log <span style='color:#111;'> 330B </span>","children":null,"spread":false},{"title":"TestTableWidget.log <span style='color:#111;'> 176B </span>","children":null,"spread":false},{"title":"QCustomTableWidget.obj <span style='color:#111;'> 301.35KB </span>","children":null,"spread":false},{"title":"TableWidget.obj <span style='color:#111;'> 284.30KB </span>","children":null,"spread":false},{"title":"TestTableWidget.obj <span style='color:#111;'> 178.26KB </span>","children":null,"spread":false},{"title":"moc_TableWidget.obj <span style='color:#111;'> 117.18KB </span>","children":null,"spread":false},{"title":"moc_QCustomTableWidget.obj <span style='color:#111;'> 106.78KB </span>","children":null,"spread":false},{"title":"ScrollBar.obj <span style='color:#111;'> 103.66KB </span>","children":null,"spread":false},{"title":"QCustomTableWidget.obj <span style='color:#111;'> 94.12KB </span>","children":null,"spread":false},{"title":"LoadFileData.obj <span style='color:#111;'> 90.34KB </span>","children":null,"spread":false},{"title":"moc_TestTableWidget.obj <span style='color:#111;'> 83.45KB </span>","children":null,"spread":false},{"title":"main.obj <span style='color:#111;'> 81.29KB </span>","children":null,"spread":false},{"title":"moc_ScrollBar.obj <span style='color:#111;'> 73.18KB </span>","children":null,"spread":false},{"title":"moc_LoadFileData.obj <span style='color:#111;'> 65.56KB </span>","children":null,"spread":false},{"title":"moc_FileFastReadLines.obj <span style='color:#111;'> 62.02KB </span>","children":null,"spread":false},{"title":"TestTableWidget.obj <span style='color:#111;'> 48.45KB </span>","children":null,"spread":false},{"title":"ScrollBar.obj <span style='color:#111;'> 15.05KB </span>","children":null,"spread":false},{"title":"LoadFileData.obj <span style='color:#111;'> 8.04KB </span>","children":null,"spread":false},{"title":"moc_QCustomTableWidget.obj <span style='color:#111;'> 7.44KB </span>","children":null,"spread":false},{"title":"qrc_TestTableWidget.obj <span style='color:#111;'> 6.41KB </span>","children":null,"spread":false},{"title":"moc_LoadFileData.obj <span style='color:#111;'> 5.08KB </span>","children":null,"spread":false},{"title":"moc_ScrollBar.obj <span style='color:#111;'> 4.69KB </span>","children":null,"spread":false},{"title":"moc_TestTableWidget.obj <span style='color:#111;'> 2.74KB </span>","children":null,"spread":false},{"title":"main.obj <span style='color:#111;'> 2.55KB </span>","children":null,"spread":false},{"title":"qrc_TestTableWidget.obj <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"TestTableWidget.pdb <span style='color:#111;'> 2.81MB </span>","children":null,"spread":false},{"title":"vc141.pdb <span style='color:#111;'> 2.43MB </span>","children":null,"spread":false},{"title":"FileCoreLib.pdb <span style='color:#111;'> 1.12MB </span>","children":null,"spread":false},{"title":"qtvars_x64_Release.props <span style='color:#111;'> 3.92KB </span>","children":null,"spread":false},{"title":"qtvars_x64_Debug.props <span style='color:#111;'> 3.90KB </span>","children":null,"spread":false},{"title":"TestTableWidget.qrc <span style='color:#111;'> 75B </span>","children":null,"spread":false},{"title":"TestTableWidget.sln <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'> 442.46KB </span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'> 326.38KB </span>","children":null,"spread":false},{"title":"TestTableWidget.write.1u.tlog <span style='color:#111;'> 36.92KB </span>","children":null,"spread":false},{"title":"CL.command.1.tlog <span style='color:#111;'> 21.89KB </span>","children":null,"spread":false},{"title":"CL.command.1.tlog <span style='color:#111;'> 17.43KB </span>","children":null,"spread":false},{"title":"CL.write.1.tlog <span style='color:#111;'> 10.03KB </span>","children":null,"spread":false},{"title":"link.read.1.tlog <span style='color:#111;'> 7.02KB </span>","children":null,"spread":false},{"title":"CL.write.1.tlog <span style='color:#111;'> 5.27KB </span>","children":null,"spread":false},{"title":"TestTableWidget.write.1u.tlog <span style='color:#111;'> 4.91KB </span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'> 4.55KB </span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'> 2.38KB </span>","children":null,"spread":false},{"title":"moc.write.1u.tlog <span style='color:#111;'> 1.82KB </span>","children":null,"spread":false},{"title":"moc.write.1u.tlog <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"moc.read.1u.tlog <span style='color:#111;'> 814B </span>","children":null,"spread":false},{"title":"uic.write.1u.tlog <span style='color:#111;'> 646B </span>","children":null,"spread":false},{"title":"uic.write.1u.tlog <span style='color:#111;'> 638B </span>","children":null,"spread":false},{"title":"moc.read.1u.tlog <span style='color:#111;'> 542B </span>","children":null,"spread":false},{"title":"rcc.write.1u.tlog <span style='color:#111;'> 326B </span>","children":null,"spread":false},{"title":"rcc.write.1u.tlog <span style='color:#111;'> 322B </span>","children":null,"spread":false},{"title":"uic.read.1u.tlog <span style='color:#111;'> 288B </span>","children":null,"spread":false},{"title":"uic.read.1u.tlog <span style='color:#111;'> 288B </span>","children":null,"spread":false},{"title":"......","children":null,"spread":false},{"title":"<span style='color:steelblue;'>文件过多,未全部展示</span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

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