Bidon
Bidon

Reputation: 221

How to duplicate a widget in second window

I need to do the following: suppose I have a widget opening on a window (as QWidget). That widget includes some plot. I also have a second window (as QMainWindow) where I do stuff to that plot interactively: move it around and resize it. What I want is to create a third window that displays the exact same thing as the first window (the one with the plot) in real time. How could I go on doing this?

Why do I want this? The first window is going to be hidden and I want the third window so as to inspect that the correct thing is happening on the first one.

Upvotes: 0

Views: 955

Answers (1)

eyllanesc
eyllanesc

Reputation: 244301

Cannot duplicate widgets. The closest thing is to create 2 widgets and in one of them you have to track the changes and apply them to the second (and vice versa). This task is not easy so I would recommend you only track some characteristics.

Upvotes: 2

Related Questions