Remove and re-add ListBox on widget while running

Hey guys.

I have a fuction: It removes a existing ListBox of the widget and adds a ListBox to it and automatically adds items.

I run it on start of the application

But if I run the function on pressing the button, the ListBox will removed but I can’t see new a new ListBox with new items.

Why does that not work?


Fixed by showing all things. I had left them hidden.

You can call show() on the new widget you’re adding when you’re adding it.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.