I have a MainWindow class and in the class I defined in public part QString app_language

Qt Code:
  1. public:
  2. explicit MainWindow(QWidget *parent = 0);
  3. ~MainWindow();
  4. QString app_language;
To copy to clipboard, switch view to plain text mode 

I would like to access to QString app_language; from another Class

I tried to use the following code:
MainWindow.app_language;

but It does not work

How to do it ?

Regards
Artur