How to show the Cocoa style button of Mac OS on Qt4/Mac?



  • Hi,

    I'm developing a GUI client using Qt4 on Mac OS X. Actually, the source code and UI form were created on Linux Qt4 and compiling it on Mac OS Snow leopard.

    I know that Qt4 uses the native look and feel, but my application compiled on Mac OS shows the QPushButton object as normal rectangle button which is ugly.

    I want to show that button as a candy style(default style of Mac OS X) button. Should I need some extra configuration to do this?

    In summary, I can see the Cocoa style button if I create the UI form on Qt/Mac, but if it was created on Linux and then compile it on Mac, QPushButton is flat rectangle which is not Cocoa style.

    Thank you.



  • It's only occurred when I specify minimum size of that button. Is there a way to solve this problem? I want to show that button as Cocoa style though I specify button's size.



  • Maybe you are looking for these widgets: http://labs.qt.nokia.com/2009/04/17/mac-widget-style-addons/


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.