[Qt4-preview-feedback] Mac: UnifiedTitleAndToolBar looks different on carbon and cocoa
Morten Sørvig
msorvig at trolltech.com
Thu Feb 12 15:36:52 CET 2009
On Feb 12, 2009, at 9:41 AM, Axel Jäger wrote:
> Hi,
> when using unified title and toolbar on mac together with a tabbar
> in document mode underneath, the result looks different when
> switching between carbon and cocoa. Cocoa shows a line between
> tabbar and toolbar. Carbon does it right when you take Safari as
> reference. See attached screenshots.
Hi, this is a known issue with the cocoa port. Here's the backstory
it if you're interested:
On Carbon we use the HIWindowSetContentBorderThickness() function to
remove the line, and all is fine. The corresponding function in Cocoa
(NSWindow::setContentBorderThickness) seems to be higher maintenance,
first of all it throws an exception if the window isn't in
NSTexturedBackgroundWindowMask mode, and if you do put it in
NSTexturedBackgroundWindowMask mode then it plain doesn't work (no
visible effect.)
I'm sure we're doing something wrong somewhere, and we'll get it fixed
eventually. But unfortunately I don't think there will be time for the
4.5.0 release :-/
- Morten
More information about the Qt4-feedback
mailing list