- 
    Bug 
- 
    Resolution: Unresolved
- 
    P2: Important 
- 
    None
- 
    5.9.3
- 
    None
- 
    {noformat}
 Qt 5.9.3 (x86_64-little_endian-lp64 shared (dynamic) release build; by Clang 8.1.0 (clang-802.0.42) (Apple)) on "cocoa"
 OS: macOS High Sierra (10.13) [darwin version 17.2.0]
 
 Architecture: x86_64; features: SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX AVX2
 
 Environment:
 
 Features: QT_NO_EXCEPTIONS QT_NO_OPENSSL
 
 Library info:
 PrefixPath: /Users/dabu/Qt5.9.3/5.9.3/clang_64
 DocumentationPath: /Users/dabu/Qt5.9.3/Docs/Qt-5.9.3
 HeadersPath: /Users/dabu/Qt5.9.3/5.9.3/clang_64/include
 LibrariesPath: /Users/dabu/Qt5.9.3/5.9.3/clang_64/lib
 LibraryExecutablesPath: /Users/dabu/Qt5.9.3/5.9.3/clang_64/libexec
 BinariesPath: /Users/dabu/Qt5.9.3/5.9.3/clang_64/bin
 PluginsPath: /Users/dabu/Qt5.9.3/5.9.3/clang_64/plugins
 ImportsPath: /Users/dabu/Qt5.9.3/5.9.3/clang_64/imports
 Qml2ImportsPath: /Users/dabu/Qt5.9.3/5.9.3/clang_64/qml
 ArchDataPath: /Users/dabu/Qt5.9.3/5.9.3/clang_64
 DataPath: /Users/dabu/Qt5.9.3/5.9.3/clang_64
 TranslationsPath: /Users/dabu/Qt5.9.3/5.9.3/clang_64/translations
 ExamplesPath: /Users/dabu/Qt5.9.3/Examples/Qt-5.9.3
 TestsPath: /Users/dabu/Qt5.9.3/5.9.3/clang_64/tests
 SettingsPath: /Users/dabu/Qt5.9.3/5.9.3/clang_64
 
 Standard paths [*...* denote writable entry]:
 DesktopLocation: "Desktop" */Users/dabu/Desktop*
 DocumentsLocation: "Documents" */Users/dabu/Documents*
 FontsLocation: "Fonts" */Users/dabu/Library/Fonts* /Library/Fonts /System/Library/Fonts
 ApplicationsLocation: "Applications" */Users/dabu/Applications* /Applications
 MusicLocation: "Music" */Users/dabu/Music*
 MoviesLocation: "Movies" */Users/dabu/Movies*
 PicturesLocation: "Pictures" */Users/dabu/Pictures*
 TempLocation: "Temporary Items" */var/folders/lp/5pdjf7gn54sgnh8g915vs43rfrpsp5/T*
 HomeLocation: "Home" */Users/dabu*
 AppLocalDataLocation: "Application Support" */Users/dabu/Library/Application Support/QtProject/qtdiag* /Library/Application Support/QtProject/qtdiag /Users/dabu/Qt5.9.3/5.9.3/clang_64/bin
 CacheLocation: "Caches" */Users/dabu/Library/Caches/QtProject/qtdiag* /Library/Caches/QtProject/qtdiag
 GenericDataLocation: "Application Support" */Users/dabu/Library/Application Support* /Library/Application Support
 RuntimeLocation: "Application Support" */Users/dabu/Library/Application Support*
 ConfigLocation: "Preferences" */Users/dabu/Library/Preferences*
 DownloadLocation: "Downloads" */Users/dabu/Downloads*
 GenericCacheLocation: "Caches" */Users/dabu/Library/Caches* /Library/Caches /System/Library/Caches
 GenericConfigLocation: "Preferences" */Users/dabu/Library/Preferences*
 AppDataLocation: "Application Support" */Users/dabu/Library/Application Support/QtProject/qtdiag* /Library/Application Support/QtProject/qtdiag /Users/dabu/Qt5.9.3/5.9.3/clang_64/bin
 AppConfigLocation: "Preferences" */Users/dabu/Library/Preferences/QtProject/qtdiag*
 
 File selectors (increasing order of precedence):
 en_BE unix darwin mac osx macos
 
 Network:
 Using "Secure Transport, macOS High Sierra (10.13)", version: 0x0
 
 Platform capabilities: ThreadedPixmaps OpenGL ThreadedOpenGL BufferQueueingOpenGL WindowMasks MultipleWindows ApplicationState ForeignWindows NonFullScreenWindows NativeWidgets WindowManagement RasterGLSurface ApplicationIcon
 
 Style hints:
 mouseDoubleClickInterval: 400
 mousePressAndHoldInterval: 800
 startDragDistance: 10
 startDragTime: 500
 startDragVelocity: 0
 keyboardInputInterval: 400
 keyboardAutoRepeatRate: 30
 cursorFlashTime: 1000
 showIsFullScreen: 0
 showIsMaximized: 0
 passwordMaskDelay: 0
 passwordMaskCharacter: U+2022
 fontSmoothingGamma: 2
 useRtlExtensions: 0
 setFocusOnTouchRelease: 0
 tabFocusBehavior: Qt::TabFocusBehavior(TabFocusAllControls)
 singleClickActivation: 0
 
 Additional style hints (QPlatformIntegration):
 ReplayMousePressOutsidePopup: 1
 
 Theme:
 Platforms requested : cocoa
 available :
 Styles requested : macintosh
 available : Windows,Fusion,Macintosh
 System font : ".SF NS Text" 13
 Native file dialog
 Native color dialog
 Native font dialog
 
 Fonts:
 General font : ".SF NS Text" 13
 Fixed font : "Monaco" 10
 Title font : ".SF NS Text" 13
 Smallest font: ".SF NS Text" 9
 
 Palette:
 WindowText: #ff000000
 Button: #ffececec
 Light: #ffffffff
 Midlight: #fff5f5f5
 Dark: #ffbfbfbf
 Mid: #ffa9a9a9
 Text: #ff000000
 BrightText: #ffffffff
 ButtonText: #ff000000
 Base: #ffffffff
 Window: #ffececec
 Shadow: #ff8b8b8b
 Highlight: #ffb2d7ff
 HighlightedText: #ff000000
 Link: #ff0000ff
 LinkVisited: #ffff00ff
 AlternateBase: #fff5f5f5
 NoRole: #ff000000
 ToolTipBase: #ffffffc7
 ToolTipText: #ff000000
 
 Screens: 2, High DPI scaling: inactive
 # 0 "Color LCD" Depth: 24 Primary: yes
 Manufacturer:
 Model:
 Serial number:
 Geometry: 1440x900+0+0 Available: 1440x877+0+23
 Virtual geometry: 3360x1200+0+0 Available: 3360x1097+0+23
 2 virtual siblings
 Physical size: 331.005x206.878 mm Refresh: 60 Hz Power state: 0
 Physical DPI: 110.5,110.5 Logical DPI: 72,72 Subpixel_RGB
 DevicePixelRatio: 2 Pixel density: 1
 Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0
 
 # 1 "DELL U2412M" Depth: 24 Primary: no
 Manufacturer:
 Model:
 Serial number:
 Geometry: 1920x1200+1440+0 Available: 1920x1097+1440+23
 Virtual geometry: 3360x1200+0+0 Available: 3360x1097+0+23
 2 virtual siblings
 Physical size: 518.809x324.255 mm Refresh: 60 Hz Power state: 0
 Physical DPI: 94,94 Logical DPI: 72,72 Subpixel_RGB
 DevicePixelRatio: 1 Pixel density: 1
 Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0
 
 LibGL Vendor: ATI Technologies Inc.
 Renderer: AMD Radeon R9 M370X OpenGL Engine
 Version: 2.1 ATI-1.58.32
 Shading language: 1.20
 Format: Version: 2.1 Profile: 0 Swap behavior: 2 Buffer size (RGB): 8,8,8 Depth buffer: -1 Stencil buffer: -1
 
 {noformat}{noformat} Qt 5.9.3 (x86_64-little_endian-lp64 shared (dynamic) release build; by Clang 8.1.0 (clang-802.0.42) (Apple)) on "cocoa" OS: macOS High Sierra (10.13) [darwin version 17.2.0] Architecture: x86_64; features: SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX AVX2 Environment: Features: QT_NO_EXCEPTIONS QT_NO_OPENSSL Library info: PrefixPath: /Users/dabu/Qt5.9.3/5.9.3/clang_64 DocumentationPath: /Users/dabu/Qt5.9.3/Docs/Qt-5.9.3 HeadersPath: /Users/dabu/Qt5.9.3/5.9.3/clang_64/include LibrariesPath: /Users/dabu/Qt5.9.3/5.9.3/clang_64/lib LibraryExecutablesPath: /Users/dabu/Qt5.9.3/5.9.3/clang_64/libexec BinariesPath: /Users/dabu/Qt5.9.3/5.9.3/clang_64/bin PluginsPath: /Users/dabu/Qt5.9.3/5.9.3/clang_64/plugins ImportsPath: /Users/dabu/Qt5.9.3/5.9.3/clang_64/imports Qml2ImportsPath: /Users/dabu/Qt5.9.3/5.9.3/clang_64/qml ArchDataPath: /Users/dabu/Qt5.9.3/5.9.3/clang_64 DataPath: /Users/dabu/Qt5.9.3/5.9.3/clang_64 TranslationsPath: /Users/dabu/Qt5.9.3/5.9.3/clang_64/translations ExamplesPath: /Users/dabu/Qt5.9.3/Examples/Qt-5.9.3 TestsPath: /Users/dabu/Qt5.9.3/5.9.3/clang_64/tests SettingsPath: /Users/dabu/Qt5.9.3/5.9.3/clang_64 Standard paths [*...* denote writable entry]: DesktopLocation: "Desktop" */Users/dabu/Desktop* DocumentsLocation: "Documents" */Users/dabu/Documents* FontsLocation: "Fonts" */Users/dabu/Library/Fonts* /Library/Fonts /System/Library/Fonts ApplicationsLocation: "Applications" */Users/dabu/Applications* /Applications MusicLocation: "Music" */Users/dabu/Music* MoviesLocation: "Movies" */Users/dabu/Movies* PicturesLocation: "Pictures" */Users/dabu/Pictures* TempLocation: "Temporary Items" */var/folders/lp/5pdjf7gn54sgnh8g915vs43rfrpsp5/T* HomeLocation: "Home" */Users/dabu* AppLocalDataLocation: "Application Support" */Users/dabu/Library/Application Support/QtProject/qtdiag* /Library/Application Support/QtProject/qtdiag /Users/dabu/Qt5.9.3/5.9.3/clang_64/bin CacheLocation: "Caches" */Users/dabu/Library/Caches/QtProject/qtdiag* /Library/Caches/QtProject/qtdiag GenericDataLocation: "Application Support" */Users/dabu/Library/Application Support* /Library/Application Support RuntimeLocation: "Application Support" */Users/dabu/Library/Application Support* ConfigLocation: "Preferences" */Users/dabu/Library/Preferences* DownloadLocation: "Downloads" */Users/dabu/Downloads* GenericCacheLocation: "Caches" */Users/dabu/Library/Caches* /Library/Caches /System/Library/Caches GenericConfigLocation: "Preferences" */Users/dabu/Library/Preferences* AppDataLocation: "Application Support" */Users/dabu/Library/Application Support/QtProject/qtdiag* /Library/Application Support/QtProject/qtdiag /Users/dabu/Qt5.9.3/5.9.3/clang_64/bin AppConfigLocation: "Preferences" */Users/dabu/Library/Preferences/QtProject/qtdiag* File selectors (increasing order of precedence): en_BE unix darwin mac osx macos Network: Using "Secure Transport, macOS High Sierra (10.13)", version: 0x0 Platform capabilities: ThreadedPixmaps OpenGL ThreadedOpenGL BufferQueueingOpenGL WindowMasks MultipleWindows ApplicationState ForeignWindows NonFullScreenWindows NativeWidgets WindowManagement RasterGLSurface ApplicationIcon Style hints: mouseDoubleClickInterval: 400 mousePressAndHoldInterval: 800 startDragDistance: 10 startDragTime: 500 startDragVelocity: 0 keyboardInputInterval: 400 keyboardAutoRepeatRate: 30 cursorFlashTime: 1000 showIsFullScreen: 0 showIsMaximized: 0 passwordMaskDelay: 0 passwordMaskCharacter: U+2022 fontSmoothingGamma: 2 useRtlExtensions: 0 setFocusOnTouchRelease: 0 tabFocusBehavior: Qt::TabFocusBehavior(TabFocusAllControls) singleClickActivation: 0 Additional style hints (QPlatformIntegration): ReplayMousePressOutsidePopup: 1 Theme: Platforms requested : cocoa available : Styles requested : macintosh available : Windows,Fusion,Macintosh System font : ".SF NS Text" 13 Native file dialog Native color dialog Native font dialog Fonts: General font : ".SF NS Text" 13 Fixed font : "Monaco" 10 Title font : ".SF NS Text" 13 Smallest font: ".SF NS Text" 9 Palette: WindowText: #ff000000 Button: #ffececec Light: #ffffffff Midlight: #fff5f5f5 Dark: #ffbfbfbf Mid: #ffa9a9a9 Text: #ff000000 BrightText: #ffffffff ButtonText: #ff000000 Base: #ffffffff Window: #ffececec Shadow: #ff8b8b8b Highlight: #ffb2d7ff HighlightedText: #ff000000 Link: #ff0000ff LinkVisited: #ffff00ff AlternateBase: #fff5f5f5 NoRole: #ff000000 ToolTipBase: #ffffffc7 ToolTipText: #ff000000 Screens: 2, High DPI scaling: inactive # 0 "Color LCD" Depth: 24 Primary: yes Manufacturer: Model: Serial number: Geometry: 1440x900+0+0 Available: 1440x877+0+23 Virtual geometry: 3360x1200+0+0 Available: 3360x1097+0+23 2 virtual siblings Physical size: 331.005x206.878 mm Refresh: 60 Hz Power state: 0 Physical DPI: 110.5,110.5 Logical DPI: 72,72 Subpixel_RGB DevicePixelRatio: 2 Pixel density: 1 Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0 # 1 "DELL U2412M" Depth: 24 Primary: no Manufacturer: Model: Serial number: Geometry: 1920x1200+1440+0 Available: 1920x1097+1440+23 Virtual geometry: 3360x1200+0+0 Available: 3360x1097+0+23 2 virtual siblings Physical size: 518.809x324.255 mm Refresh: 60 Hz Power state: 0 Physical DPI: 94,94 Logical DPI: 72,72 Subpixel_RGB DevicePixelRatio: 1 Pixel density: 1 Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0 LibGL Vendor: ATI Technologies Inc. Renderer: AMD Radeon R9 M370X OpenGL Engine Version: 2.1 ATI-1.58.32 Shading language: 1.20 Format: Version: 2.1 Profile: 0 Swap behavior: 2 Buffer size (RGB): 8,8,8 Depth buffer: -1 Stencil buffer: -1 {noformat}
- Create a QMainWindow
- Call setUnifiedTitleAndToolBarOnMac(true) on this window
- Show a sheet
I expect the sheet to be shown under the titlebar, but instead it is positioned too high covering the titlebar.
In attachment you'll find a working example. If you compile this with 5.9.3 you will see the bug. I tested also with 5.6.0 and there we don't have the bug. So it's a regression. On the screenshot you see the version compiled with 5.9.3 on the left and the one which is build with 5.6.0 on the right.
I think this issue is introduced with https://codereview.qt-project.org/#/c/208117/ which was the fix for QTBUG-63444.
When setting 'titlebarAppearsTransparent' to YES, you have to add the height of the titlebar yourself to the thickness of the contentBorder.
I added
effectiveTopContentBorderThickness += frameMargins().top();
just at the place where titlebarAppearsTransparent is set to YES and this solved the issue.
- is duplicated by
- 
                    QTBUG-65451 Y Position of Sheet is lower with setUnifiedTitleAndToolBarOnMac -         
- Closed
 
-         
