Results 1 to 3 of 3

Thread: Style QMenu::item's icon

  1. #1
    Join Date
    Oct 2008
    Posts
    306
    Thanks
    6
    Thanked 9 Times in 8 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Style QMenu::item's icon

    I can't remove the border from the QMenu's item:selected icon, I've tried using QIcon (border:none) but it wont work.

  2. #2
    Join Date
    Dec 2012
    Posts
    90
    Thanks
    5
    Thanked 20 Times in 18 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Style QMenu::item's icon

    Have you tried?
    Qt Code:
    1. QMenu::item:selected {
    2. border:none;
    3. }
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Oct 2008
    Posts
    306
    Thanks
    6
    Thanked 9 Times in 8 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Style QMenu::item's icon

    Oooh! Nice.

Similar Threads

  1. QPalette problem/bug in QMenu with custom style
    By warchild in forum Qt Programming
    Replies: 0
    Last Post: 23rd October 2012, 06:52
  2. Icon in a QMenu doesn't show up on Linux
    By agarny in forum Qt Programming
    Replies: 4
    Last Post: 2nd February 2011, 14:58
  3. Replies: 0
    Last Post: 27th April 2010, 15:15
  4. How to change Icon size in QMenu?
    By alex chpenst in forum Qt Programming
    Replies: 4
    Last Post: 3rd September 2008, 14:16
  5. [Style Sheet] QMenu::item:hover bug
    By spud in forum Qt Programming
    Replies: 3
    Last Post: 11th May 2007, 14:11

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.