Fluent-Qt

API 參考

Inspector

為 QWidget 樹產生唯讀的 JSON 檢查報告。請在視窗顯示且待處理的版面配置事件穩定後呼叫(結構描述見 inspector-report.schema.json)。

fluent::diagnostics::InspectorOptions

設定 Inspector 執行的唯讀 UI 檢查項目。預設值適用於標準桌面視窗;版面配置格線檢查預設為關閉,因為外殼介面常會刻意採用視覺偏移。

欄位

fluent::diagnostics::Inspector

常數

方法

static QJsonObject report(QWidget* root, const InspectorOptions& options = InspectorOptions{})

檢查 @p root 並傳回確定性的檢查結果與摘要計數。