Maybe I was not clear.
In my code, at the level of first class.cpp line 11, we have:
Qt Code:
  1. QStringList Heritage::operation1(QString fileName)
To copy to clipboard, switch view to plain text mode 
On the line 14, we have:
Qt Code:
  1. QFile file1(m_openFile->text());
To copy to clipboard, switch view to plain text mode 
m_openFile->text() replaces what you called in your code fileName, and what I've added here too. But the variable "fileName" is not used. It was my problem.
To answer to your qestion, according to me, ChildWindow shows the path to the file to be opned to Heritage with the expression: m_openFile->text().
Could you please clarify this situation? I would be grateful to you.