View Full Version : Close button in a tab
mitro
15th May 2008, 17:57
Hi all,
How can I add a close button "x" to a tab in QTabWidget? I want to make it work like in Firefox - when you click it the tab gets closed.
Thanks in advance, Dmitriy Melnik.
wysota
16th May 2008, 08:35
Search the forum for possible solutions, there have been some threads about it. Unfortunately the final effect is far from being perfect.
mitro
16th May 2008, 10:22
Yes, it really seems to be a hard task. So I found another way the user can close tabs. I called setCornerWidget with QToolButton to place a close button to the corner of the entire tab widget. Not like Firefox but it is suitable for my application. Thanks for the guidance! :)
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.