How do you transfer a scene from form 1 to a scene on form 2 ?
:eek:
Printable View
How do you transfer a scene from form 1 to a scene on form 2 ?
:eek:
Hi
You can do something like this:
Form1
To call the Form2
Code:
QGraphicsScene *sourceScene; // Put a "scene" inside the *sourceScene SCENE* tab = new SCENE(0,0, surceScene); tab->show();
Form2
Code:
#include <QGraphisScene> class QGrahicsScene; { Q_OBJECT public: ~SCENE(); (...) }; { setupUi(this); // Use you "targetScene" pointer inside your program };
Bye
I try that , Thanks