Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to show the Cocoa style button of Mac OS on Qt4/Mac?
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 3.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    superkkt
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      superkkt
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • Y Offline
        Y Offline
        yshurik
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved