Is there a way to close a tab by mouse?
Is there a way to close a tab by mouse?
try this code
Qt Code:
{ tabBar()->installEventFilter(this); } { removeTab(tabBar()->tabAt(mouseEvent->pos())); return true; } }To copy to clipboard, switch view to plain text mode
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
arturo182 (23rd April 2009)
Qt Code:
tabAt(mouseEvent->pos()));To copy to clipboard, switch view to plain text mode
Спасибо, товарищ!
<tnank you, comrade>
пожалуйста
you're welcome.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
Bookmarks