T
T
TemaKam2021-01-04 17:41:31
Python
TemaKam, 2021-01-04 17:41:31

How to remove the object associated with the tab being removed?

is there a QTabWidget where tabs = objects of my class
how does removing a tab (removeTab(tab index)) remove the object associated with that tab?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bbkmzzzz, 2021-01-04
@bbkmzzzz

Store mappings between the tab and related data somewhere.
Get a tab manager who (and only he) will add, remove tabs and manage data on these tabs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question