Well there is no native method that enables this. You after you add or remove a tab from the tab_widget
you could just swap the tab_widget
with another widget when there are no tabs left. And swap it back once you add a tab again. This is obviously not the move elegant solution, but it works.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.