Results 1 to 1 of 1

Thread: Styling Text and Icon in QToolButton (ToolButtonTextUnderIcon)

  1. #1
    Join Date
    Jan 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    Symbian S60

    Question Styling Text and Icon in QToolButton (ToolButtonTextUnderIcon)

    Hello

    I'm trying to figure out the way to apply the styles on the QToolButton when ToolButtonTextUnderIcon is set for toolButtonStyle.

    What I want to achieve? I want to get the icon closer to the text by applying margins or paddings to ether icon or text. Moreover, I want to get icon a slightly down to make it pixel perfect.

    Current solution of making icon and text as one image and setting toolButtonStyle to ToolButtonIconOnly does not meet my needs anymore...

    Thanks
    Last edited by mindo; 23rd March 2011 at 05:12.

Similar Threads

  1. Replies: 1
    Last Post: 18th November 2010, 07:39
  2. QToolButton icon did not appear
    By mismael85 in forum Qt Programming
    Replies: 4
    Last Post: 24th March 2008, 18:13
  3. QToolButton icon not updated in overflow menu
    By pabakertx in forum Qt Programming
    Replies: 2
    Last Post: 26th September 2007, 13:48
  4. QToolButton will not display its icon
    By JimBrown in forum Qt Programming
    Replies: 6
    Last Post: 9th March 2007, 18:54
  5. QToolButton text alignment
    By Vladimir in forum Qt Programming
    Replies: 6
    Last Post: 2nd March 2007, 07:42

Tags for this Thread

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.