Results 1 to 3 of 3

Thread: QTabWidget and closeButton

  1. #1
    Join Date
    Jan 2006
    Location
    Rzeszow, POLAND
    Posts
    20
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QTabWidget and closeButton

    Is there easy way to add a small icon in each tab, which will be used to close it? Do I need inherit class or is there any suitable method?

  2. #2
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTabWidget and closeButton

    You can use the setCornerWidget method to add a close button to the far right - but I guess that you want one on each tab. That will probably require some sub-classing.

  3. #3
    Join Date
    Jan 2006
    Location
    Rzeszow, POLAND
    Posts
    20
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QTabWidget and closeButton

    I thought to put close button on each tab but it's enough right now.
    Thank You

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.