Hi there,

Is there any possibility to add an "x" to tabs of TabContainer and make them closing via mouseclick just like with every modern browser ui? I am programming a game terminal/console with multitab ability and make them open by player via a special keystroke and player can close the active tab via typing command "exit" (child of tabcontainer is RichTextLabel). Additionally I want the player to close tabs via that mouseclick.

Hi,you can use TextureButton and connect signal pressed() to close tabs

Thanks for the reply, but isn't there any "build-in" possibility or what do these options mean?

Hi,

I watched them, but unfortunately my question is not answered yet. But thanks for your time.

a month later

Just to push that post once again. Still did not found any solution. :-( Set Custom theme of TabContainer to the theme like godot engine uses for it self. Also set_close_display_policy() to show allways (ENUM* 2). But as allways, no closing button in Tab title is shown:

a year later

I have the same problem now. Is there any solution? Maybe someone has an answer now :)

4 years later