I've figured out a solution now. I use getter and setter functions. I put the functions in public of both control_window and configuration_window and define it in the Source files.

Header configuration_window:

Qt Code:
  1. public:
  2. QProcess *process() const;
  3. void setProcess(QProcess *process);
To copy to clipboard, switch view to plain text mode 

Header control_window:

Qt Code:
  1. public:
  2. QProcess *process() const;
  3. void setProcess(QProcess *process);
To copy to clipboard, switch view to plain text mode 


Source configuration_window:

Qt Code:
  1. QProcess *configuration_window::process() const
  2. {
  3. return m_opc_ua_server;
  4. }
  5. void configuration_window::setProcess(QProcess *process)
  6. {
  7. m_opc_ua_server = process;
  8. }
To copy to clipboard, switch view to plain text mode 

Source control_window:

Qt Code:
  1. QProcess *control_window::process() const
  2. {
  3. return m_opc_ua_server;
  4. }
  5. void control_window::setProcess(QProcess *process)
  6. {
  7. m_opc_ua_server = process;
  8. }
To copy to clipboard, switch view to plain text mode 

In the Click Event that opens the next window I call the set function

Qt Code:
  1. m_control_window->setProcess(process());
To copy to clipboard, switch view to plain text mode 

Now I can use m_opc_ua_server in control_window.