Results 1 to 3 of 3

Thread: QMenu

  1. #1
    Join Date
    May 2008
    Posts
    15
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QMenu

    how can I add different images for different QMenu items...

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

  3. #3
    Join Date
    May 2008
    Posts
    15
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QMenu

    thanks,
    but QAction::setIcon is only an icon and I cant even scale it. I have five QAction and I need different background color or image for different actions. I write a stylesheet but it affects for all items/action.
    "QMenu::item {\n"
    "background-image: url(:/menubkicon) ;\n"

Similar Threads

  1. QMenu and signals
    By mattia in forum Newbie
    Replies: 6
    Last Post: 20th December 2007, 09:09
  2. how to popup and close a QMenu
    By Placido Currò in forum Qt Programming
    Replies: 15
    Last Post: 14th May 2007, 16:41
  3. Shortcut for QMenu
    By Ryhel in forum Qt Programming
    Replies: 3
    Last Post: 15th March 2007, 11:57
  4. Qmenu Stable close on QTableWidget
    By patrik08 in forum Qt Programming
    Replies: 1
    Last Post: 17th July 2006, 10:03
  5. Replies: 2
    Last Post: 23rd February 2006, 16:38

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.