• 大小: 15.9MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-31
  • 语言: 其他
  • 标签: Cutereport  Qt  

资源简介

开源Qt报表软件介绍cutereport 有本人学习笔记,10分完全值得

资源截图

代码片段和文件信息

#include 
#include 

#include 
#include 

int main(int argc char *argv[])
{
    QApplication a(argc argv);

    CuteReport::ReportCore * reportCore = new CuteReport::ReportCore(0 0 false);
    CuteReport::ReportPreview * preview = new CuteReport::ReportPreview();

    preview->setReportCore(reportCore);
    QString reportUrl;
#ifdef Q_OS_WIN
    reportUrl = “file:/C/Program Files (x86)/CuteReport/development/examples/reports/invoice_1.qtrp“;
#else
    reportUrl = “file:/usr/share/cutereport/examples/examples/reports/invoice_1.qtrp“;
#endif
    CuteReport::ReportInterface * reportobject = reportCore->loadReport(reportUrl);
    if (!reportobject) {
        QMessageBox::critical(0 Qobject::tr(“CuteReport example“)
                              Qobject::tr(“Report file loading error“)
                              QMessageBox::Ok);
        exit(1);
    }
    preview->connectReport(reportobject);
    preview->show();
    preview->run();

    a.exec();

    delete preview;
    delete reportCore;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-02-14 12:16  zfg2-cutereport_1.3.1_src\
     目录           0  2017-02-14 11:18  zfg2-cutereport_1.3.1_src\build\
     文件         711  2017-01-11 07:21  zfg2-cutereport_1.3.1_src\build.cfg
     文件      471552  2017-02-08 11:25  zfg2-cutereport_1.3.1_src\build\CuteDesigner.dll
     文件      529920  2017-02-08 16:20  zfg2-cutereport_1.3.1_src\build\cutereport-zfg.exe
     文件      530944  2017-02-08 11:34  zfg2-cutereport_1.3.1_src\build\cutereport.exe
     文件     1084416  2017-02-08 11:23  zfg2-cutereport_1.3.1_src\build\CuteReportCore.dll
     文件      237568  2017-02-08 11:24  zfg2-cutereport_1.3.1_src\build\CuteReportWidgets.dll
     文件      211968  2017-02-08 11:24  zfg2-cutereport_1.3.1_src\build\CuteReportWidgetsThirdparty.dll
     目录           0  2017-02-14 11:18  zfg2-cutereport_1.3.1_src\build\cutereport_resources\
     目录           0  2017-02-14 11:18  zfg2-cutereport_1.3.1_src\build\cutereport_resources\doc\
     文件       35147  2017-01-11 07:21  zfg2-cutereport_1.3.1_src\build\cutereport_resources\doc\COPYING
     文件        1446  2017-01-11 07:21  zfg2-cutereport_1.3.1_src\build\cutereport_resources\doc\LICENSE
     文件        1901  2017-01-11 07:21  zfg2-cutereport_1.3.1_src\build\cutereport_resources\doc\README
     文件        7911  2017-01-11 07:21  zfg2-cutereport_1.3.1_src\build\cutereport_resources\doc\THIRDPARTY-LICENSE-EXARO
     文件       19622  2017-01-11 07:21  zfg2-cutereport_1.3.1_src\build\cutereport_resources\doc\THIRDPARTY-LICENSE-ICU
     文件        8143  2017-01-11 07:21  zfg2-cutereport_1.3.1_src\build\cutereport_resources\doc\THIRDPARTY-LICENSE-PROPERTYEDITOR
     文件       35613  2017-01-11 07:21  zfg2-cutereport_1.3.1_src\build\cutereport_resources\doc\THIRDPARTY-LICENSE-QZINT
     文件        1928  2017-01-11 07:21  zfg2-cutereport_1.3.1_src\build\cutereport_resources\doc\THIRDPARTY-LICENSE-ZINT
     目录           0  2017-02-14 11:18  zfg2-cutereport_1.3.1_src\build\cutereport_resources\images\
     文件       12514  2017-01-11 07:21  zfg2-cutereport_1.3.1_src\build\cutereport_resources\images\cutereport.svg
     文件       52382  2017-01-11 07:21  zfg2-cutereport_1.3.1_src\build\cutereport_resources\images\cutereport_logo.ico
     文件       67646  2017-01-11 07:21  zfg2-cutereport_1.3.1_src\build\cutereport_resources\images\cutereport_logo_128x128.ico
     文件        2326  2017-01-11 07:21  zfg2-cutereport_1.3.1_src\build\cutereport_resources\images\cutereport_logo_22x22.ico
     文件        4606  2017-01-11 07:21  zfg2-cutereport_1.3.1_src\build\cutereport_resources\images\cutereport_logo_32x32.ico
     文件        8190  2017-01-11 07:21  zfg2-cutereport_1.3.1_src\build\cutereport_resources\images\cutereport_logo_48x48.ico
     文件       16958  2017-01-11 07:21  zfg2-cutereport_1.3.1_src\build\cutereport_resources\images\cutereport_logo_64x64.ico
     文件         845  2017-01-11 07:21  zfg2-cutereport_1.3.1_src\build\cutereport_resources\images\group_Bands.png
     文件         571  2017-01-11 07:21  zfg2-cutereport_1.3.1_src\build\cutereport_resources\images\group_Shapes.png
     文件         936  2017-01-11 07:21  zfg2-cutereport_1.3.1_src\build\cutereport_resources\images\group_Text.png
     目录           0  2017-02-14 11:18  zfg2-cutereport_1.3.1_src\build\development\
............此处省略2650个文件信息

评论

共有 条评论