Results 1 to 3 of 3

Thread: spacing between icon and text

  1. #1
    Join Date
    Mar 2012
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default spacing between icon and text

    Hi

    I'm trying to increase the space between a QToolButton's icon and text. I'm assuming its one of the styles (padding, margin, border) but none of these are having any effect. What is the correct way to increase the space.


    TIA

    Mike

  2. #2
    Join Date
    May 2012
    Location
    Bangalore, India
    Posts
    271
    Thanks
    29
    Thanked 50 Times in 47 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: spacing between icon and text

    Use addStretch() to add a stretchable space (a QSpacerItem) with zero minimum size and stretch factor stretch to the end of this box layout.

  3. #3
    Join Date
    Mar 2012
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: spacing between icon and text

    Thanks for replying but I'm not sure what you mean. Which box layout are you referring to? QToolButton or its parent container?

Similar Threads

  1. Text under icon on QtableView
    By aguayro in forum Qt Programming
    Replies: 2
    Last Post: 10th March 2012, 13:58
  2. Creating a list with icon and text in the center of icon
    By prophet0 in forum Qt Programming
    Replies: 2
    Last Post: 15th December 2011, 04:03
  3. [QPushButton] text below icon
    By Tomasz in forum Newbie
    Replies: 10
    Last Post: 3rd December 2010, 16:06
  4. Button icon and text
    By electronicboy in forum Qt Programming
    Replies: 5
    Last Post: 9th October 2009, 23:27
  5. Text under the Icon
    By QiT in forum Newbie
    Replies: 3
    Last Post: 1st April 2007, 18: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.