Details
-
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)
Description
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.
Attachments
Issue Links
- 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
-
For Gerrit Dashboard: QTBUG-63038 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
517931,1 | QTabWidget/Bar: ignore hidden tabs for key events | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: NEW | 0 | 0 |