D
D
Daniil Shevkunov2021-05-30 23:14:23
PyQt
Daniil Shevkunov, 2021-05-30 23:14:23

How to rename tabs in PyQt tab widget (QTabWidget)?

When I add a tab widget, I can't rename the tabs, the tab objects just don't have a name property or similar, how do I do that?

60b3f1c50ee66591365593.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yupiter7575, 2021-05-30
@danila763

click on the tab you want to rename, and then in the Property Editor (if you can't find it, make sure it's visible using the View->Property Editor menu item) scroll down and find the currentTabText property. You can change the name of the tab right there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question