Answer the question
In order to leave comments, you need to log in
QTabWidget — Remove close button from some tabs?
There was a problem with QT, namely:
there is a QTabWidget in which some documents and / or information are displayed.
It is necessary to somehow remove the “close” button from some tabs, the indices of which are known.
So far, it turned out only to control which tab wants to close and stop this action from the right ones. But I would like to remove this button altogether.
Answer the question
In order to leave comments, you need to log in
Manually set QTabBar buttons
void QTabBar::setTabButton ( int index, ButtonPosition position, QWidget * widget );
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question