Qt Graphs 配置选项

主要功能

在切换主要功能时,同时禁用这两个功能将导致根本无法构建模块。

  • QT_FEATURE_graphs_2d 可在Qt Graphs 模块中构建 2D 图形支持。默认情况下,它是ON 。可以通过向 CMake 传递-DFEATURE_graphs_2d=OFF 来禁用此功能。
  • QT_FEATURE_graphs_3d 可在Qt Graphs 模块中构建 3D 图形支持。默认为ON 。可通过向 CMake 传递-DFEATURE_graphs_3d=OFF 来禁用。

Qt Graphs 用于 3D 功能

在切换 3D 功能时,禁用所有功能将导致模块无法使用任何功能。如果禁用QT_FEATURE_graphs_3d ,这些功能将不起任何作用。

  • QT_FEATURE_graphs_3d_bars3d 可在Qt Graphs 模块中构建Bars3D 图形支持。默认情况下,它是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 来禁用此功能。

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