-
Suggestion
-
Resolution: Done
-
P3: Somewhat important
-
5.9.0, 5.9.1
-
None
-
556712f511a02ff8101e648d2e6f0090231d4f3d (qt/qtbase/5.15), 83e92e255 (dev), b4384dab0 (6.6), 22ab737dd (tqtc/lts-6.5), af0319ceb (dev), 531bcae7d (6.10), adccb9dee (6.9), 5d0816354 (tqtc/lts-6.8)
It would be very useful if there would be an API for controling the visibility of tabs in a TabWiget without removing and reinserting the tab pages so that the hiden pages are not visible in the tab bar. QTabWidget should remember the position, and any associated information with the tab itself without the developer having to store this themselves.
like the "enable/disable" API:
void QTabBar::setTabVisible(int index, bool visible); bool QTabBar::isTabVisible(int index) const;
The suggestions using removeTab and insertTab in order to hide and show tab pages is not very developer friendly, as indexes are changes for succeeding tabs and the developer needs to maintain an index map and all the inforamtion of the tab page.
QTabWidget should remember the position, and any associated information from the tab itself without the developer having to store this themselves.
- duplicates
-
QTBUG-3635 Add a slot or function QTabWidget::setTabVisible(bool)
-
- Closed
-
-
QTBUG-4141 QTabBar/QTabWidget: Be able to hide/show tabs
-
- Closed
-
-
QTBUG-8692 CLONE -QTabWidget: Add API for hiding tabs
-
- Closed
-
-
QTBUG-39732 QTabWidget/QTabBar: Add API for hiding/showing tabs
-
- Closed
-
- resulted in
-
QTBUG-139791 Buttons don't work when the last tab is hidden
-
- Closed
-
-
QTBUG-102020 Incorrect layout in QTabBar when last tab is hidden
-
- Closed
-