Results 1 to 3 of 3

Thread: QTabWidget Place icon with no text and stretch icon over tab

  1. #1
    Join Date
    Aug 2012
    Posts
    55
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QTabWidget Place icon with no text and stretch icon over tab

    Hello
    I have qtabwidget and when I place icon it's very small. Is there any way to stretch that icon over tab and use only icon with no text, something like this: http://screencloud.net/v/lVoj

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QTabWidget Place icon with no text and stretch icon over tab

    That would be better done as a QListWidget in QListView::IconMode with a matching QStackedWidget. See the Config Dialog Example.

  3. #3
    Join Date
    Aug 2012
    Posts
    55
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QTabWidget Place icon with no text and stretch icon over tab

    Thank you, this is perfect

Similar Threads

  1. QTabWidget with no text and icon
    By martinn in forum Qt Programming
    Replies: 12
    Last Post: 22nd April 2015, 13:04
  2. QTabWidget tab icon problem
    By zgulser in forum Newbie
    Replies: 1
    Last Post: 12th June 2012, 11:45
  3. 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
  4. QTabWidget with icon upper the text.
    By call_from in forum Qt Programming
    Replies: 0
    Last Post: 1st November 2010, 23:35
  5. How stretch icon in QPushButton?
    By cutie.monkey in forum Qt Programming
    Replies: 1
    Last Post: 8th July 2010, 09:54

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.