I have the main window, and I have a dialog named Dialog.
I want to type in the main window, and the text should appear in the dialog.
where should I declare the variable so that both, Dialog.cpp & MainWindow.cpp can access it at the same time ?