Results 1 to 2 of 2

Thread: QAction Icon

  1. #1
    Join Date
    Jul 2007
    Posts
    104
    Thanks
    22
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default QAction Icon

    How can I change the icon size of an action ?(I will use this icon and action at a pushButton menu!)

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QAction Icon

    QAction does not care about icon size. It is up to the various widgets out there to represent an action in a way they want. For example QMenu and QToolButton both do so in a different way.

    QMenu uses styles to decide the correct icon size for the platform in use. You can trick QMenu to use larger icon size with a custom style. For more details, see thread: http://www.qtcentre.org/forum/f-qt-p...cons-4173.html
    J-P Nurmi

Similar Threads

  1. Setting window icon on derived QWidget
    By steg90 in forum Qt Programming
    Replies: 5
    Last Post: 16th July 2007, 11:21
  2. Making Icon with more than one image
    By weepdoo in forum Qt Programming
    Replies: 9
    Last Post: 11th June 2007, 13:55
  3. QListWidget in ListMode - still has icon space
    By high_flyer in forum Newbie
    Replies: 10
    Last Post: 30th March 2007, 19:43
  4. QSystemTrayIcon doesn't show icon ?
    By probine in forum Qt Programming
    Replies: 3
    Last Post: 25th January 2007, 19:17
  5. Showing Icon in vertical header of a table
    By vishal.chauhan in forum Qt Programming
    Replies: 7
    Last Post: 15th January 2007, 10:44

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.