Results 1 to 2 of 2

Thread: Menu icon size in stylesheet?

  1. #1
    Join Date
    Apr 2009
    Location
    www.JaminGrey.com
    Posts
    71
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Windows

    Default Menu icon size in stylesheet?

    Look at this image:


    The circled icon - how can I make it larger using stylesheets or, alternatively, programmaticly? I googled, but mostly got archaic answers from previous QT versions. I'm currently using QT 4.6.

    After pouring over the stylesheets documentation, I've tried both of these:

    QMenu
    {
    icon-size: 50px 50px;
    }

    QMenu::icon
    {
    icon-size: 50px 50px;
    }

    Neither worked. I'm still new to style sheets... what am I doing wrong?

  2. #2
    Join Date
    Nov 2010
    Posts
    4
    Qt products
    Qt4

    Default Re: Menu icon size in stylesheet?

    you can refer to this thread: http://www.qtcentre.org/threads/4173...r-resize-icons

    But there is another problem, when i change the size to 50, the icon and text overlap, it seems the text 's position doesn't change according to the icon's size. How to solve this problem?

Similar Threads

  1. Replies: 1
    Last Post: 25th October 2010, 11:34
  2. menu tearoffs/submenus not using stylesheet
    By ntp in forum Qt Programming
    Replies: 2
    Last Post: 11th October 2010, 16:51
  3. Replies: 0
    Last Post: 12th August 2010, 16:05
  4. increase size of button on StyleSheet?
    By Kevin Hoang in forum Qt Programming
    Replies: 2
    Last Post: 21st March 2010, 07:56
  5. QToolButton icon not updated in overflow menu
    By pabakertx in forum Qt Programming
    Replies: 2
    Last Post: 26th September 2007, 13:48

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.