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.
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.
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)
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!
Bookmarks