Fluent-Qt

API 參考

ApplicationCompat

本標頭檔宣告的公開型別、函式與常數。

Global

列舉

enum class FluentSystemColorScheme

支援時由 Qt 樣式提示回報的作業系統色彩配置(Qt 6.5+)。

  • Unknown
  • Light
  • Dark

方法

inline void fluentPrepareHighDpiApplicationAttributes()

在建立 QApplication 前套用特定 Qt 版本所需的 High-DPI 啟動屬性。

inline bool fluentHighDpiScalingIsEnabled()

回報與裝置無關的 High-DPI 縮放是否處於啟用狀態。

inline bool fluentIsWindowInsetChangeEvent(const QEvent* event)

判斷事件是否可能變更原生視窗的安全區域邊距。

inline bool fluentIsDevicePixelRatioChangeEvent(const QEvent* event)

判斷事件是否回報裝置像素比變更。

inline bool fluentIsDisplayScaleChangeEvent(const QEvent* event)

判斷事件是否需要重新整理顯示縮放相關快取(所有版本檢查 ScreenChangeInternal,Qt 6.6+ 額外檢查 DevicePixelRatioChange)。