Qt Graphs 配置选项
本主题列出了可用于配置Qt Graphs 模块构建的配置选项。
主要功能
如果您同时禁用这两个主要功能,则该模块将完全无法构建。
QT_FEATURE_graphs_2d启用将 2D 图支持构建到Qt Graphs 模块中。默认值为ON。若要禁用,请向 CMake 传递
-DFEATURE_graphs_2d=OFF。QT_FEATURE_graphs_3d启用在Qt Graphs 模块中构建3D图支持。默认值为ON。若要禁用,请向 CMake 传递
-DFEATURE_graphs_3d=OFF。
Qt Graphs 关于 2D 功能
如果您禁用所有这些功能,则 2D 模块的Qt Graphs 将无法用于任何用途。如果禁用了QT_FEATURE_graphs_2d ,这些选项将不生效。
QT_FEATURE_graphs_2d_area启用将区域图支持构建到Qt Graphs 模块中。默认值为ON。若要禁用,请向 CMake 传递
-DFEATURE_graphs_2d_area=OFF。启用面积图也会启用LineSeries 支持,因为这是创建面积图的最低要求。如果
upperSeries或lowerSeries需要SplineSeries ,则应同时启用QT_FEATURE_graphs_2d_spline选项。QT_FEATURE_graphs_2d_bar启用将条形图支持构建到Qt Graphs 模块中。默认值为ON。若要禁用,请将
-DFEATURE_graphs_2d_bar=OFF传递给 CMake。QT_FEATURE_graphs_2d_donut_pie启用将环形图和扇形图支持构建到Qt Graphs 模块中。默认值为ON。若要禁用,请向 CMake 传递
-DFEATURE_graphs_2d_donut_pie=OFF。QT_FEATURE_graphs_2d_line启用将折线图支持构建到Qt Graphs 模块中。默认值为ON。若要禁用,请向 CMake 传递
-DFEATURE_graphs_2d_line=OFF。QT_FEATURE_graphs_2d_scatter启用将散点图支持构建到Qt Graphs 模块中。默认值为ON。若要禁用,请向 CMake 传递
-DFEATURE_graphs_2d_scatter=OFF。QT_FEATURE_graphs_2d_spline启用将样条曲线图支持构建到Qt Graphs 模块中。默认值为ON。若要禁用,请向 CMake 传递
-DFEATURE_graphs_2d_spline=OFF。
Qt Graphs 关于 3D 功能
如果您禁用所有这些功能,用于3D模块的Qt Graphs 将无法用于任何用途。如果QT_FEATURE_graphs_3d 被禁用,这些选项将不生效。
QT_FEATURE_graphs_3d_bars3d启用将Bars3D 图支持构建到Qt Graphs 模块中。默认值为ON。若要禁用,请向 CMake 传递
-DFEATURE_graphs_3d_bars3d=OFF参数。QT_FEATURE_graphs_3d_scatter3d启用将Scatter3D 图支持构建到Qt Graphs 模块中。默认值为ON。若要禁用,请向 CMake 传递 `
-DFEATURE_graphs_3d_scatter3d=OFF`。QT_FEATURE_graphs_3d_surface3d启用将Surface3D 图支持构建到Qt Graphs 模块中。默认值为ON。若要禁用,请向 CMake 传递
-DFEATURE_graphs_3d_surface3d=OFF。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.