The problem is that you are assuming that the “item” is loaded already when you add the tab. The actual creation happens lazily when the tab becomes visible. It works for the first tab since that is already visible when you add it.
↧









