Results 1 to 4 of 4

Thread: How to add close button to each tab widget Qtabwidget?

  1. #1
    Join Date
    Oct 2009
    Posts
    23
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Unhappy How to add close button to each tab widget Qtabwidget?

    Hi,


    I have added a close button at the top right corner of the tab widget to close the opened tabs.
    How to add close button to each tab??
    How to increase the tab's area?
    Like this

    i-----ii----i

    to

    |---------X||---------X|



    some thing like this...

    Thanks

    Kishore
    Last edited by kishore7771; 3rd April 2010 at 19:00.

  2. #2
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to add close button to each tab widget Qtabwidget?

    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

  3. #3
    Join Date
    Oct 2009
    Posts
    23
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to add close button to each tab widget Qtabwidget?

    Hi,
    Thanks for reply ...
    I am using QT 4.1 this property is introduced in QT4.5

  4. #4
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to add close button to each tab widget Qtabwidget?

    So the simplest solution would be to upgrade to the newest Qt. Are there any reasons preventing you from doing so?
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

Similar Threads

  1. How to hide Close Button "X" on Widget ?
    By merry in forum Qt Programming
    Replies: 8
    Last Post: 25th January 2020, 08:03
  2. How to Disabel close button on top corner of widget
    By jsmith in forum Qt Programming
    Replies: 4
    Last Post: 2nd August 2010, 16:57
  3. Disable close button on QTabWidget/QTabBar
    By minimoog in forum Qt Programming
    Replies: 1
    Last Post: 16th March 2009, 05:25
  4. QTabWidget: how to close a tab by a click
    By YaK in forum Qt Programming
    Replies: 3
    Last Post: 1st December 2008, 18:10
  5. Close Button on Modal Widget?
    By vishal.chauhan in forum Qt Programming
    Replies: 5
    Last Post: 18th February 2008, 11:38

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.