PDA

View Full Version : Mac Style for Qt Application---help needed



swamyonline
15th June 2008, 12:50
hi
I am using Qt-4.3. I want to apply Mac Style to my application. How can i do it? i tried by #./myapplication -style mac
#./myapplication -style macstyle

but both of those options are setting my application to default style (or windows style). it seems, there is no Mac Style provision in Qt-4.3. can anybody suggest how can i apply mac style to my application. thanks in advance.

thank u.

wysota
15th June 2008, 19:49
The Aqua style is available only on the Mac platform.

swamyonline
15th June 2008, 21:30
hi,
thanks wysota for ur reply. but what is the use of QMacStyle Class in Qt4.3? is it not at all possible to set qt application (on linux X11) to mac style? any how thanks again..

wysota
15th June 2008, 21:49
No, it's not possible because the mac style uses Mac API to render itself, just like WindowsXP style is available only on WindowsXP and Windows Vista.