PDA

View Full Version : Global declaration



nighil
24th January 2011, 16:46
My gui application contain 2 windows and i want to read the value from one window and use it in the other window.How am i supposed to declare a common Qstring variable for both the windows

Zlatomir
24th January 2011, 16:51
Why not using signals and slots (http://doc.qt.nokia.com/4.7/signalsandslots.html) to pass a const reference*** from one window to the other.
***or value (shared by default) depend on what you need to do with the QString.