[Interest] macintosh style: apparently it *can* be used on other platforms too.

René J.V. Bertin rjvbertin at gmail.com
Fri May 15 10:14:51 CEST 2015


Hi,

I had always assumed that Qt used native APIs to generate/draw its widgets when using the "Macintosh (aqua)" (Qt 4.8) and "Macintosh" (Qt 5) styles on OS X. Purely by accident I discovered that this is apparently not the case, while playing with the xcb platform plugin on OS X. It works with X11 and while it's not the most appropriate for remote displaying but it does work remotely too, indicating that it doesn't require Cocoa APIs.

That style actually doesn't look bad at all under X11, a lot better in any case than the Windows style that is part of the styles made available on all platforms. Why not add the Macintosh style to that list?

Of course you don't get the full experience but it gets close, and my initial impression is even that it suffers less from the over-spacious layout you get with Qt applications using the native style under OS X (a font choice issue?).

R.



More information about the Interest mailing list