Amerio.Stephane Posted June 14, 2023 Share Posted June 14, 2023 Hi, This code crashes: while (tabbox->getNumTabs()) { Log::message(" %d\n", tabbox->getNumTabs()); // the number of tabs will not go down... tabbox->removeTab(0); } How can I remove all tabs (and their content)? Thanks. Link to comment
Amerio.Stephane Posted June 14, 2023 Author Share Posted June 14, 2023 Never mind, I found the culprit: myself. I was trying to remove the tab from a callback triggered by a widget in the tab itself. (and of course I repeated the mistake in my test before submitting). 1 Link to comment
Recommended Posts