Does TabBar have icons yet?

Godot Version

4.3rc3

Question

Does the Godot TabBar support icons? i don’t see a property and a Google search shows the GitHub team discussing adding it in 2020 but i don’t see anything newer that shows the TabBar became, you know, good.

Yes TabBar supports icons for it’s elements.

How? i didn’t see anything in the inspector?

2024-10-10-213313_273x383_scrot

Ah. Right. You and i are using the TabBar very differently. i’ve seen that thing and can’t for the life of me figure out how to use it. Maybe i’m just really bad at this.

My setup is like this:

  • TabContainer
    • TabBar
      • Container with stuff
    • TabBar
      • Container with other stuff

i tried with a TabBar root and its tabs property and that didn’t work. Here’s a single TabBar with tabs defined in it. The icon shows but…


The tabs are full height, overlap the contents, you can’t associate panels with the tabs (so the tabs don’t do anything) and the tabs (or TabBar) have any layout options (both are Container Determined and unchangeable).

Am i doing something horribly wrong here?

TabContainer is easier to use, though lacks a easy way to do icons, it does not need TabBars as children in fact I’d recommend against that specifically.

A TabBar is created automatically as part of a TabContainer.

With only a TabBar you must set up signals to handle changing tab when each element is selected.