Results 1 to 2 of 2

Thread: close button for tabwidget

  1. #1
    Join Date
    Apr 2008
    Location
    Karaj,Iran
    Posts
    43
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default close button for tabwidget

    after googling a little bit,it turned out that in qt 4.5 tabs of QTabWidget could have close button,but for now I'm using qt 4.4 and I don't like using candidate version of 4.5, plus struggling with new upcoming problems when using another qt version for my app,so how can I add close button for my tabs just like firefox?something like a little pixmap at the corner of each tab responsible for closing the corresponding tab
    ---
    thanks in advance
    ---
    A situtation never gets so complicated that it can't get any more complicated!

  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: close button for tabwidget

    There is one simple way but for inserting one button for all tabs (like in Qt Assistant) - just add it as corner widget to QTabWidget (setCornerWidget()). I think adding close button for each tab might be more complicated.
    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. Disable Close button (X) of a QDialog
    By BrainB0ne in forum Qt Programming
    Replies: 29
    Last Post: 8th December 2009, 17:01
  3. Replies: 5
    Last Post: 21st April 2008, 07:54
  4. Close Button on Modal Widget?
    By vishal.chauhan in forum Qt Programming
    Replies: 5
    Last Post: 18th February 2008, 11:38
  5. Replies: 3
    Last Post: 16th November 2006, 12:24

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.