Results 1 to 1 of 1

Thread: QTabWidget icon padding/margin?

  1. #1
    Join Date
    Jan 2013
    Qt products

    Default QTabWidget icon padding/margin?

    Can anyone tell me how to set the position or set the margin/padding of a TabBar icon?

    I made a QPushButton in Qt and added an icon trough the Property Editor. The icon and the text appeared fine. However, due to a change in development, we decided to replace the button (and the buttons next to it) with a TabWidget and set the appearances the same.

    But when i add the an icon the the TabBar trough the Property Editor, it doesn't place the icon on the same location as it did with the PushButton. The image is set right on the border....

    see image:

    I tried to add some extra whitespace to the image to set it on the right spot, but this also pushes the TabText away.
    Last edited by Nyte; 2nd April 2013 at 12:01.

Similar Threads

  1. Replies: 0
    Last Post: 21st August 2012, 17:06
  2. Replies: 3
    Last Post: 19th February 2012, 11:40
  3. Icon margin in QListView
    By mpi in forum Qt Programming
    Replies: 4
    Last Post: 1st July 2010, 13:56
  4. Replies: 3
    Last Post: 25th June 2010, 05:21
  5. QPainter.drawText and margin/padding
    By invictus in forum Newbie
    Replies: 1
    Last Post: 24th July 2009, 12:56


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.