Results 1 to 5 of 5

Thread: MacOS and QToolBar?

  1. #1
    Join Date
    Sep 2008
    Posts
    3
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11

    Wink MacOS and QToolBar?

    Hello

    I have a issue while using QToolBar on my Mac, I'm using the

    Qt Code:
    1. setUnifiedTitleAndToolBarOnMac(true);
    To copy to clipboard, switch view to plain text mode 

    command to get the QToolBar to look like the normal Mac Toolbars, but it never comes out the way it is normaly on the Mac, the QToolBar is always a bit too big, anyone seen this issue before?
    It looks like there is a extra margin below the text.
    Any suggestions on how to shrink the QToolBar down to the standard Mac size?

    Thanks for any help.
    //Daniel
    Attached Images Attached Images

  2. #2
    Join Date
    Aug 2006
    Posts
    77
    Thanks
    14
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: MacOS and QToolBar?

    Hi!

    Maybe setting the icon size will help.

    setIconSize ( const QSize & iconSize )

  3. #3
    Join Date
    Sep 2008
    Posts
    3
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11

    Default Re: MacOS and QToolBar?

    Hi

    I tried that, the whole size of the toolbar gets smaller, but then it looks really strange, because the empty margin around the text is still really big and the icon is quite small, looks even more strange.

    What I have been trying now is to skip the QToolButton and create my own QWidget with a QLabel below, because then you can change the margin of the QLabel and get it sort of right, but I need to create my own Button widget that behaves the same way Mac does with the buttons, it's a lot of code to do all that sadly.

  4. #4
    Join Date
    May 2008
    Posts
    24
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11

    Default Re: MacOS and QToolBar?

    I have similar problem with Qt 4.5.

    Any idea ?

  5. #5
    Join Date
    Sep 2008
    Posts
    3
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11

    Default Re: MacOS and QToolBar?

    No, I haven't sadly found a way to get around this problem.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.