Results 1 to 3 of 3

Thread: Icon Sizing Question

  1. #1
    Join Date
    Jul 2009
    Posts
    25
    Thanks
    7
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Icon Sizing Question

    Hello, all;

    This may be elementary, but I'm having a problem putting together the correct code. Can anyone tell me how I can use an Icon on a QToolButton or QPushButton that is larger than the "large" 32-pixel size? I need to use several .pngs that are about 80 x 80. Thanks in advance!

  2. #2
    Join Date
    Jul 2009
    Posts
    25
    Thanks
    7
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Re: Icon Sizing Question

    Bump. Any suggestions would be appreciated...thanks.

  3. #3
    Join Date
    Aug 2008
    Posts
    134
    Thanks
    10
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Icon Sizing Question

    Better you subclass QPushBUtton and drawPixmap() in paintEvent()

Similar Threads

  1. QMessageBox missing icon
    By zanth in forum Qt Programming
    Replies: 3
    Last Post: 8th July 2010, 21:20
  2. question about assigning a pixmap to an icon
    By Dark_Tower in forum Newbie
    Replies: 5
    Last Post: 21st December 2009, 09:11
  3. Couple of questions: main window icon + toolbar icon
    By bpackard in forum Qt Programming
    Replies: 0
    Last Post: 20th March 2008, 19:03
  4. Mac application and the Dock Icon
    By sekelsenmat in forum Qt Programming
    Replies: 3
    Last Post: 26th September 2007, 10:23
  5. Designer Question About Sizing Widgets
    By pmabie in forum Qt Tools
    Replies: 1
    Last Post: 23rd September 2007, 11:05

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.