-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.9, 6.10, 6.11
-
-
1e367f2f8 (dev), 9a34cb18c (6.10), 5509cb530 (6.9)
src/plugins/platforms/cocoa/qcocoawindow.mm in qtbase uses NSWindowStyleMaskTexturedBackground, which is deprecated in enum was deprecated in macOS 10.11. This leads to compiler warnings:
/Users/kkoehne/dev/qt/6.10/src/qtbase/src/plugins/platforms/cocoa/qcocoawindow.mm:647:22: warning: 'NSWindowStyleMaskTexturedBackground' is deprecated: first deprecated in macOS 11.0 - Textured window style should no longer be used [-Wdeprecated-declarations] 647 | styleMask |= NSWindowStyleMaskTexturedBackground; | ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:60:5: note: 'NSWindowStyleMaskTexturedBackground' has been explicitly marked deprecated here 60 | NSWindowStyleMaskTexturedBackground API_DEPRECATED("Textured window style should no longer be used", macos(10.2, 11.0)) = 1 << 8, | ^ /Users/kkoehne/dev/qt/6.10/src/qtbase/src/plugins/platforms/cocoa/qcocoawindow.mm:2058:48: warning: 'NSWindowStyleMaskTexturedBackground' is deprecated: first deprecated in macOS 11.0 - Textured window style should no longer be used [-Wdeprecated-declarations] 2058 | window.styleMask = window.styleMask & ~NSWindowStyleMaskTexturedBackground; | ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:60:5: note: 'NSWindowStyleMaskTexturedBackground' has been explicitly marked deprecated here 60 | NSWindowStyleMaskTexturedBackground API_DEPRECATED("Textured window style should no longer be used", macos(10.2, 11.0)) = 1 << 8, | ^ /Users/kkoehne/dev/qt/6.10/src/qtbase/src/plugins/platforms/cocoa/qcocoawindow.mm:2084:47: warning: 'NSWindowStyleMaskTexturedBackground' is deprecated: first deprecated in macOS 11.0 - Textured window style should no longer be used [-Wdeprecated-declarations] 2084 | [window setStyleMask:[window styleMask] | NSWindowStyleMaskTexturedBackground]; | ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:60:5: note: 'NSWindowStyleMaskTexturedBackground' has been explicitly marked deprecated here 60 | NSWindowStyleMaskTexturedBackground API_DEPRECATED("Textured window style should no longer be used", macos(10.2, 11.0)) = 1 << 8, | ^ 3 warnings generated.