首页下载资源移动开发QT选择cmake创建的项目使用QXlsx Demo

ZIPQT选择cmake创建的项目使用QXlsx Demo

qq_16186465153.38KB需要积分:1

资源文件列表:

CmakeQXlsx.zip 大约有96个文件
  1. CmakeQXlsx/CMakeLists.txt 1.69KB
  2. CmakeQXlsx/main.cpp 183B
  3. CmakeQXlsx/mainwindow.cpp 583B
  4. CmakeQXlsx/mainwindow.h 397B
  5. CmakeQXlsx/mainwindow.ui 790B
  6. CmakeQXlsx/QXlsx/
  7. CmakeQXlsx/QXlsx/cmake/
  8. CmakeQXlsx/QXlsx/cmake/modules/
  9. CmakeQXlsx/QXlsx/cmake/modules/CPackConfig.cmake 638B
  10. CmakeQXlsx/QXlsx/cmake/modules/qxlsx-config.cmake.in 438B
  11. CmakeQXlsx/QXlsx/cmake/modules/qxlsx-config-version.cmake.in 765B
  12. CmakeQXlsx/QXlsx/CMakeLists.txt 6.12KB
  13. CmakeQXlsx/QXlsx/header/
  14. CmakeQXlsx/QXlsx/header/xlsxabstractooxmlfile.h 997B
  15. CmakeQXlsx/QXlsx/header/xlsxabstractooxmlfile_p.h 680B
  16. CmakeQXlsx/QXlsx/header/xlsxabstractsheet.h 1.31KB
  17. CmakeQXlsx/QXlsx/header/xlsxabstractsheet_p.h 748B
  18. CmakeQXlsx/QXlsx/header/xlsxcell.h 1.71KB
  19. CmakeQXlsx/QXlsx/header/xlsxcell_p.h 698B
  20. CmakeQXlsx/QXlsx/header/xlsxcellformula.h 1.39KB
  21. CmakeQXlsx/QXlsx/header/xlsxcellformula_p.h 781B
  22. CmakeQXlsx/QXlsx/header/xlsxcelllocation.h 458B
  23. CmakeQXlsx/QXlsx/header/xlsxcellrange.h 2.32KB
  24. CmakeQXlsx/QXlsx/header/xlsxcellreference.h 1.25KB
  25. CmakeQXlsx/QXlsx/header/xlsxchart.h 2.01KB
  26. CmakeQXlsx/QXlsx/header/xlsxchart_p.h 4.94KB
  27. CmakeQXlsx/QXlsx/header/xlsxchartsheet.h 826B
  28. CmakeQXlsx/QXlsx/header/xlsxchartsheet_p.h 499B
  29. CmakeQXlsx/QXlsx/header/xlsxcolor_p.h 1.33KB
  30. CmakeQXlsx/QXlsx/header/xlsxconditionalformatting.h 4KB
  31. CmakeQXlsx/QXlsx/header/xlsxconditionalformatting_p.h 2.15KB
  32. CmakeQXlsx/QXlsx/header/xlsxcontenttypes_p.h 1.42KB
  33. CmakeQXlsx/QXlsx/header/xlsxdatavalidation.h 2.7KB
  34. CmakeQXlsx/QXlsx/header/xlsxdatavalidation_p.h 1.15KB
  35. CmakeQXlsx/QXlsx/header/xlsxdatetype.h 1.04KB
  36. CmakeQXlsx/QXlsx/header/xlsxdocpropsapp_p.h 934B
  37. CmakeQXlsx/QXlsx/header/xlsxdocpropscore_p.h 731B
  38. CmakeQXlsx/QXlsx/header/xlsxdocument.h 5.24KB
  39. CmakeQXlsx/QXlsx/header/xlsxdocument_p.h 1014B
  40. CmakeQXlsx/QXlsx/header/xlsxdrawing_p.h 747B
  41. CmakeQXlsx/QXlsx/header/xlsxdrawinganchor_p.h 4.96KB
  42. CmakeQXlsx/QXlsx/header/xlsxformat.h 7.33KB
  43. CmakeQXlsx/QXlsx/header/xlsxformat_p.h 2.67KB
  44. CmakeQXlsx/QXlsx/header/xlsxglobal.h 659B
  45. CmakeQXlsx/QXlsx/header/xlsxmediafile_p.h 1010B
  46. CmakeQXlsx/QXlsx/header/xlsxnumformatparser_p.h 1.84KB
  47. CmakeQXlsx/QXlsx/header/xlsxrelationships_p.h 3.36KB
  48. CmakeQXlsx/QXlsx/header/xlsxrichstring.h 3.35KB
  49. CmakeQXlsx/QXlsx/header/xlsxrichstring_p.h 2.04KB
  50. CmakeQXlsx/QXlsx/header/xlsxsharedstrings_p.h 3.38KB
  51. CmakeQXlsx/QXlsx/header/xlsxsimpleooxmlfile_p.h 2.14KB
  52. CmakeQXlsx/QXlsx/header/xlsxstyles_p.h 5.25KB
  53. CmakeQXlsx/QXlsx/header/xlsxtheme_p.h 580B
  54. CmakeQXlsx/QXlsx/header/xlsxutility_p.h 1.15KB
  55. CmakeQXlsx/QXlsx/header/xlsxworkbook.h 3.18KB
  56. CmakeQXlsx/QXlsx/header/xlsxworkbook_p.h 1.95KB
  57. CmakeQXlsx/QXlsx/header/xlsxworksheet.h 7.37KB
  58. CmakeQXlsx/QXlsx/header/xlsxworksheet_p.h 7.09KB
  59. CmakeQXlsx/QXlsx/header/xlsxzipreader_p.h 722B
  60. CmakeQXlsx/QXlsx/header/xlsxzipwriter_p.h 638B
  61. CmakeQXlsx/QXlsx/QXlsx.pri 6.48KB
  62. CmakeQXlsx/QXlsx/QXlsx.pro 1.05KB
  63. CmakeQXlsx/QXlsx/source/
  64. CmakeQXlsx/QXlsx/source/xlsxabstractooxmlfile.cpp 1.79KB
  65. CmakeQXlsx/QXlsx/source/xlsxabstractsheet.cpp 3.51KB
  66. CmakeQXlsx/QXlsx/source/xlsxcell.cpp 7.41KB
  67. CmakeQXlsx/QXlsx/source/xlsxcellformula.cpp 12.59KB
  68. CmakeQXlsx/QXlsx/source/xlsxcelllocation.cpp 350B
  69. CmakeQXlsx/QXlsx/source/xlsxcellrange.cpp 2.9KB
  70. CmakeQXlsx/QXlsx/source/xlsxcellreference.cpp 3.4KB
  71. CmakeQXlsx/QXlsx/source/xlsxchart.cpp 76.25KB
  72. CmakeQXlsx/QXlsx/source/xlsxchartsheet.cpp 4.03KB
  73. CmakeQXlsx/QXlsx/source/xlsxcolor.cpp 5.14KB
  74. CmakeQXlsx/QXlsx/source/xlsxconditionalformatting.cpp 31.86KB
  75. CmakeQXlsx/QXlsx/source/xlsxcontenttypes.cpp 6.37KB
  76. CmakeQXlsx/QXlsx/source/xlsxdatavalidation.cpp 16.3KB
  77. CmakeQXlsx/QXlsx/source/xlsxdatetype.cpp 1.21KB
  78. CmakeQXlsx/QXlsx/source/xlsxdocpropsapp.cpp 4.99KB
  79. CmakeQXlsx/QXlsx/source/xlsxdocpropscore.cpp 7.02KB
  80. CmakeQXlsx/QXlsx/source/xlsxdocument.cpp 45.44KB
  81. CmakeQXlsx/QXlsx/source/xlsxdrawing.cpp 2.49KB
  82. CmakeQXlsx/QXlsx/source/xlsxdrawinganchor.cpp 48.15KB
  83. CmakeQXlsx/QXlsx/source/xlsxformat.cpp 32.97KB
  84. CmakeQXlsx/QXlsx/source/xlsxmediafile.cpp 1.51KB
  85. CmakeQXlsx/QXlsx/source/xlsxnumformatparser.cpp 2KB
  86. CmakeQXlsx/QXlsx/source/xlsxrelationships.cpp 5.6KB
  87. CmakeQXlsx/QXlsx/source/xlsxrichstring.cpp 6.99KB
  88. CmakeQXlsx/QXlsx/source/xlsxsharedstrings.cpp 14.83KB
  89. CmakeQXlsx/QXlsx/source/xlsxsimpleooxmlfile.cpp 660B
  90. CmakeQXlsx/QXlsx/source/xlsxstyles.cpp 65.82KB
  91. CmakeQXlsx/QXlsx/source/xlsxtheme.cpp 9.86KB
  92. CmakeQXlsx/QXlsx/source/xlsxutility.cpp 9.17KB
  93. CmakeQXlsx/QXlsx/source/xlsxworkbook.cpp 24.61KB
  94. CmakeQXlsx/QXlsx/source/xlsxworksheet.cpp 100.11KB
  95. CmakeQXlsx/QXlsx/source/xlsxzipreader.cpp 896B
  96. CmakeQXlsx/QXlsx/source/xlsxzipwriter.cpp 966B

资源介绍:

QT选择cmake创建的项目使用QXlsx Demo
# CMakeLists.txt for QXlsx Library cmake_minimum_required(VERSION 3.16) project(QXlsx VERSION 1.4.4 LANGUAGES CXX ) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) include(GNUInstallDirs) if(NOT DEFINED QT_VERSION_MAJOR) find_package(QT NAMES Qt6 Qt5 COMPONENTS Core Gui REQUIRED) endif() find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core Gui REQUIRED) set(EXPORT_NAME QXlsxQt${QT_VERSION_MAJOR}) if (QT_VERSION_MAJOR EQUAL 6) set(CMAKE_CXX_STANDARD 17 CACHE STRING "") else() set(CMAKE_CXX_STANDARD 11 CACHE STRING "") endif() set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules) if(NOT DEFINED QXLSX_PARENTPATH) set(QXLSX_PARENTPATH ${CMAKE_CURRENT_SOURCE_DIR}/../) endif() if(NOT DEFINED QXLSX_HEADERPATH) set(QXLSX_HEADERPATH ${CMAKE_CURRENT_SOURCE_DIR}/../QXlsx/header/) endif() if(NOT DEFINED QXLSX_SOURCEPATH) set(QXLSX_SOURCEPATH ${CMAKE_CURRENT_SOURCE_DIR}/../QXlsx/source/) endif() # Due historical reasons this value is kept off option(BUILD_SHARED_LIBS "Build in shared lib mode" OFF) set(SRC_FILES source/xlsxcellrange.cpp source/xlsxcellrange.cpp source/xlsxcontenttypes.cpp source/xlsxdrawinganchor.cpp source/xlsxrichstring.cpp source/xlsxworkbook.cpp source/xlsxabstractooxmlfile.cpp source/xlsxcellreference.cpp source/xlsxdatavalidation.cpp source/xlsxdrawing.cpp source/xlsxsharedstrings.cpp source/xlsxworksheet.cpp source/xlsxabstractsheet.cpp source/xlsxchart.cpp source/xlsxdatetype.cpp source/xlsxformat.cpp source/xlsxsimpleooxmlfile.cpp source/xlsxzipreader.cpp source/xlsxcell.cpp source/xlsxchartsheet.cpp source/xlsxdocpropsapp.cpp source/xlsxmediafile.cpp source/xlsxstyles.cpp source/xlsxzipwriter.cpp source/xlsxcellformula.cpp source/xlsxcolor.cpp source/xlsxdocpropscore.cpp source/xlsxnumformatparser.cpp source/xlsxtheme.cpp source/xlsxcelllocation.cpp source/xlsxconditionalformatting.cpp source/xlsxdocument.cpp source/xlsxrelationships.cpp source/xlsxutility.cpp header/xlsxabstractooxmlfile_p.h header/xlsxchartsheet_p.h header/xlsxdocpropsapp_p.h header/xlsxformat_p.h header/xlsxsharedstrings_p.h header/xlsxworkbook_p.h header/xlsxabstractsheet_p.h header/xlsxcolor_p.h header/xlsxdocpropscore_p.h header/xlsxmediafile_p.h header/xlsxsimpleooxmlfile_p.h header/xlsxworksheet_p.h header/xlsxcellformula_p.h header/xlsxconditionalformatting_p.h header/xlsxdocument_p.h header/xlsxnumformatparser_p.h header/xlsxstyles_p.h header/xlsxzipreader_p.h header/xlsxcell_p.h header/xlsxcontenttypes_p.h header/xlsxdrawinganchor_p.h header/xlsxrelationships_p.h header/xlsxtheme_p.h header/xlsxzipwriter_p.h header/xlsxchart_p.h header/xlsxdatavalidation_p.h header/xlsxdrawing_p.h header/xlsxrichstring_p.h header/xlsxutility_p.h ) set(QXLSX_PUBLIC_HEADERS header/xlsxabstractooxmlfile.h header/xlsxabstractsheet.h header/xlsxabstractsheet_p.h header/xlsxcellformula.h header/xlsxcell.h header/xlsxcelllocation.h header/xlsxcellrange.h header/xlsxcellreference.h header/xlsxchart.h header/xlsxchartsheet.h header/xlsxconditionalformatting.h header/xlsxdatavalidation.h header/xlsxdatetype.h header/xlsxdocument.h header/xlsxformat.h header/xlsxglobal.h header/xlsxrichstring.h header/xlsxworkbook.h header/xlsxworksheet.h ) add_library(QXlsx ${SRC_FILES} ${QXLSX_PUBLIC_HEADERS} ) add_library(QXlsx::QXlsx ALIAS QXlsx) target_compile_definitions(QXlsx PRIVATE QT_NO_KEYWORDS QT_NO_CAST_TO_ASCII QT_NO_CAST_FROM_ASCII QT_NO_URL_CAST_FROM_STRING QT_NO_CAST_FROM_BYTEARRAY QT_USE_QSTRINGBUILDER QT_NO_SIGNALS_SLOTS_KEYWORDS QT_USE_FAST_OPERATOR_PLUS QT_DISABLE_DEPRECATED_BEFORE=0x060600 ) if (NOT WIN32) # Strict iterators can't be used on Windows, they lead to a link error # when application code iterates over a QVector for instance, unless # Qt itself was also built with strict iterators. # See example at https://bugreports.qt.io/browse/AUTOSUITE-946 target_compile_definitions(QXlsx PRIVATE QT_STRICT_ITERATORS) endif() target_compile_features(QXlsx INTERFACE cxx_std_11) if (BUILD_SHARED_LIBS) target_compile_definitions(QXlsx PUBLIC QXlsx_SHAREDLIB) endif() target_link_libraries(${PROJECT_NAME} Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::GuiPrivate ) target_include_directories(QXlsx PRIVATE ${QXLSX_HEADERPATH} PUBLIC $ $ ) set_target_properties(QXlsx PROPERTIES OUTPUT_NAME ${EXPORT_NAME} VERSION ${PROJECT_VERSION} SOVERSION 0.${PROJECT_VERSION} PUBLIC_HEADER "${QXLSX_PUBLIC_HEADERS}" ) install(TARGETS QXlsx EXPORT ${EXPORT_NAME}Targets DESTINATION ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT runtime ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT devel PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/QXlsxQt${QT_VERSION_MAJOR} COMPONENT devel ) install(EXPORT ${EXPORT_NAME}Targets DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${EXPORT_NAME}/ FILE ${EXPORT_NAME}Targets.cmake NAMESPACE QXlsx:: COMPONENT devel ) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules/qxlsx-config.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/${EXPORT_NAME}Config.cmake @ONLY ) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules/qxlsx-config-version.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/${EXPORT_NAME}ConfigVersion.cmake @ONLY ) install( FILES ${CMAKE_CURRENT_BINARY_DIR}/${EXPORT_NAME}Config.cmake ${CMAKE_CURRENT_BINARY_DIR}/${EXPORT_NAME}ConfigVersion.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${EXPORT_NAME}/ ) # include(CPackConfig)
100+评论
captcha