S
S
Sergey2011-06-03 18:16:46
Qt
Sergey, 2011-06-03 18:16:46

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

1 answer(s)
C
clear_heap, 2011-06-03
Protko @Fesor

Manually set QTabBar buttons
void QTabBar::setTabButton ( int index, ButtonPosition position, QWidget * widget );

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question