Results 1 to 1 of 1

Thread: How to adapt Qt Creator's ManhattanStyle? (toolbar icon size)

  1. #1
    Join Date
    Jun 2006
    Posts
    81
    Thanks
    6
    Thanked 5 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Question How to adapt Qt Creator's ManhattanStyle? (toolbar icon size)

    Hi all,

    I'm trying to adapt Qt Creator's ManhattanStyle such that a (vertical) toolbar would resemble the mode selector.

    With default style (Win7), I can call e.g. toolBar->setIconSize(QSize(60, 40)) and the icons are enlarged as expexcted. This does not work when setting ManhattanStyle: Icons are downscaled and even overlap with the text displayed below.

    I thought that adapting ManhattanStyle:ixelMetric(...) for case PM_ToolBarIconSize would do the trick. However, while toolBar->iconSize() returns the adapted size as expected, the painting is unaffected. Mind that when using the default style, toolBar->iconSize() returns {24, 24}, yet toolBar->setIconSize(...) works as expected.

    How do I need to modify ManhattanStyle so that toolbar icons are painted larger than 16x16? Any ideas appreciated.
    Last edited by zaphod.b; 12th January 2010 at 19:17. Reason: changed title

Similar Threads

  1. Can creator's help get a window of its own?
    By hgiese in forum Qt Tools
    Replies: 7
    Last Post: 4th September 2009, 17:36
  2. Adapting the "Simple DOM Model Example" to be read/write
    By joshuajcarson in forum Qt Programming
    Replies: 7
    Last Post: 8th September 2008, 20:19

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.