title: How can I use common variable in multiple cpp file in Qt..?
body: <pre><code> #include "main.h"    
   #include "ui_main.h"     
  
   Main::Main(QWidget *parent):    
   QMainWindow(parent),    
   ui(new Ui::Main)    
   {    
   ui-&gt;setupUi(this);    
   }
  
   Main::~Main()    
   {    
       delete ui;    
   }
  </code></pre>
  
  <p>I have this header file main for Qt in which part should I create global variable</p>