Qt colleagues 
I have multiple windows(ControlWindow, NewWindow)
How do I pass variables between windows (From ControlWindow to NewWindow & NewWindow to ControlWindow)
ControlWindow CreateNewWindow button creates a newWindow.
ControlWindow also has an upload image Button that loads an image in the label of the new window.
ControlWindow holds the name of image(QString) & the QImage
In my newWindow Constructor
MainWindow TempMain; //probably because im creating a new instance of mainWindow variables are blank!
//But that than how do I call the getter Functions of mainWindow from newWindow?
//Nothing loads, the QString & Qimage is blank?
QString tempName
= TempMain.
getName();
QImage tempImage
= TempMain.
getImage();
tempImage .load(tempName);
ui
->labelImage
->setPixmap
(QPixmap::fromImage(tempImage
));
MainWindow TempMain; //probably because im creating a new instance of mainWindow variables are blank!
//But that than how do I call the getter Functions of mainWindow from newWindow?
//Nothing loads, the QString & Qimage is blank?
QString tempName = TempMain.getName();
QImage tempImage = TempMain.getImage();
tempImage .load(tempName);
ui->labelImage->setPixmap(QPixmap::fromImage(tempImage));
To copy to clipboard, switch view to plain text mode
Help please. Ideas 
Signals and slots, Maybe?
Bookmarks