qcustomplot使用

1. 下载源码

2. 添加源码到项目

3.修改 .pro 文件:确保在 `.pro` 文件中包含 `QtPrintSupport` 模块。添加以下行到您的 `.pro` 文件中:

QT += printsupport

若是CMake构建,修改CMakeLists.txt:

find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets LinguistTools PrintSupport)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets LinguistTools PrintSupport)

.........

target_link_libraries(QtMatlabplot PRIVATE Qt${QT_VERSION_MAJOR}::Widgets Qt6::PrintSupport)

若出现此问题:

可能是未进行第三步或者qcustomplot不支持此版本QT

posted @ 2025-01-02 22:18  妖岭  阅读(56)  评论(0)    收藏  举报