Hello,

What is the best way to access MainWindow instance from a separate class.

Main.cpp
Qt Code:
  1. ...
  2. int main(int argc, char *argv[])
  3. {
  4. QApplication a(argc, argv);
  5. MainWindow w;
  6. w.show();
  7.  
  8. return a.exec();
  9. }
  10. ...
To copy to clipboard, switch view to plain text mode 

How can I do this?

Thank you have a good day!