Qt3DCore::QCoreSettings Class

class Qt3DCore::QCoreSettings

QCoreSettings 類保存核心數據處理過程的相關設置。 更多...

頭: #include <QCoreSettings>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3DCore)
target_link_libraries(mytarget PRIVATE Qt6::3DCore)
qmake: QT += 3dcore
Since: Qt 6.0
在 QML: CoreSettings
繼承: Qt3DCore::QComponent
狀態: 棄用

特性

公共函數

QCoreSettings (Qt3DCore::QNode * parent = nullptr)
bool boundingVolumesEnabled () const

公共槽

void setBoundingVolumesEnabled (bool boundingVolumesEnabled )

信號

void boundingVolumesEnabledChanged (bool boundingVolumesEnabled )

詳細描述

The QCoreSettings component should be set as a component of the scene root entity (although it could be anywhere in the scene graph). There should be a single instance.

它可以用於控製 Qt 3D 的某些行為。

特性文檔編製

boundingVolumesEnabled : bool

Holds whether bounding volumes handling is enabled. This is true by default. Disabling this allows to reduce the amount of computations performed each frame. If you are using picking or frustum culling you should keep this enabled (even when providing explicit bounding volumes sizes using QBoundingVolume ).

訪問函數:

bool boundingVolumesEnabled () const
void setBoundingVolumesEnabled (bool boundingVolumesEnabled )

通知程序信號:

void boundingVolumesEnabledChanged (bool boundingVolumesEnabled )

成員函數文檔編製

[explicit] QCoreSettings:: QCoreSettings ( Qt3DCore::QNode * parent = nullptr)

構造新的 QCoreSettings 采用 parent .