Getting variable value from QDialog to MainWindow works fine, but getting it from another dialog, doesn't work.
-
Hi, so I've been trying to get a variable from a QDialog to another QDialog, but it doesn't work.
In MainWindow it works, but in another dialog it doesn't...
Maybe it's because I'm not running the dialog from the another one, but I run it from MainWindow, set a variable value, try to get it from another dialog, but it's just blank.
I don't know how to get it now. -
Could be anything. You give us no information that might allow someone to help.
Compiler errors or warnings?
Run time warnings?
Local variable shadowing the variable you are trying to access?In general "accessing variables" in another object is a potential problem in design.
-
Hi
Another poster asked the same so you can look at this sample
https://www.dropbox.com/s/l8go4t71unosl05/CrossTalk.zip?dl=0It sends info from one window to the other using signal and slots