mirror of
https://github.com/obsproject/obs-studio.git
synced 2025-12-23 22:48:02 -05:00
Qt strict mode disables APIs deemed "'suboptimal' or 'dangerous'" [1] and "clearly undesirable" [2] by Qt that will be removed in the long term. Usages of the APIs in OBS have been removed in the previous commits, and by setting this flag we keep ourselves from using them again. The versioning works in a way where e.g. a new addition to this in 6.9 would only be disabled if at least 0x060900 is set. By setting 0xFF0000, we're effectively disabling any APIs that are deemed to be bad in any future Qt version (up to 255). While this could lead to OBS not being buildable against bleeding edge Qt, it also means that it will be noticed early. Should the disabled API turn out to be too complex to remove, the value can be downgraded to the last working one then. [1] qt/qtbase@3a6c8e02b6 [2] qt/qtbase@f9163ae7a8