Hello,

I need to display the same widget (really, the same instance of a widget) in all tabs of a QTabWidget. The idea is that I would change the content of this "shared" widget, based on the selected tab. I cannot instantiate this widget multiple times.

Is there a clean way to do this?

I considered the following options:

- Add the shared widget as a child to all tabs of the QTabWidget. I didn't pursue the idea, because from what I could gather, a widget can have only one parent.

- Use a QStackedWidget, put the shared widget on the first page, put the QTabWidget on the second page, and somehow make that second page transparent. I can foresee focus problems, though.

Any idea?

Cheers,
Franz