Qt Graphs 配置选项

本主题列出了用于配置Qt Graphs 模块构建的配置选项。

主要功能

如果禁用这两个主要功能,则根本不会构建模块。

  • QT_FEATURE_graphs_2d 启用在 模块中构建 2D 图形支持。默认情况下, 。Qt Graphs ON

    若要禁用,请将-DFEATURE_graphs_2d=OFF 发送给 CMake。

  • QT_FEATURE_graphs_3d 启用在 模块中构建 3D 图形支持。默认为 。Qt Graphs ON

    若要禁用,请向 CMake 传递-DFEATURE_graphs_3d=OFF

Qt Graphs 2D 功能

如果禁用所有这些功能,Qt Graphs for 2D 模块将无法使用。如果禁用QT_FEATURE_graphs_2d ,这些选项将不起作用。

  • QT_FEATURE_graphs_2d_area 启用在 模块中构建面积图支持。默认为 。Qt Graphs ON

    要禁用,请将-DFEATURE_graphs_2d_area=OFF 发送给 CMake。

    启用面积图还将启用LineSeries 支持,因为这是创建面积图的最低要求。如果SplineSeriesupperSerieslowerSeries 所必需的,则还应启用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

    若要禁用,请将-DFEATURE_graphs_2d_donut_pie=OFF 发送给 CMake。

  • 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 功能

如果禁用所有这些功能,Qt Graphs for 3D 模块将无法使用。如果禁用QT_FEATURE_graphs_3d ,这些选项将不起作用。

  • QT_FEATURE_graphs_3d_bars3d 启用在 模块中构建 图形支持。默认为 。Qt Graphs Bars3D ON

    要禁用,请将-DFEATURE_graphs_3d_bars3d=OFF 发送给 CMake。

  • QT_FEATURE_graphs_3d_scatter3d 启用在 模块中构建 图形支持。默认为 。Qt Graphs Scatter3D ON

    若要禁用,请向 CMake 传递-DFEATURE_graphs_3d_scatter3d=OFF

  • QT_FEATURE_graphs_3d_surface3d 启用在 模块中构建 图形支持。默认为 。Qt Graphs Surface3D ON

    若要禁用,请向 CMake 传递-DFEATURE_graphs_3d_surface3d=OFF

© 2025 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.