You can access any public member of a class from any other class.
It would probably be better, though, to pass the filename around via signals and slots. This is somewhat "cleaner" than making direct function calls, which can rapidly multiply into a messy tangle of intertwined calls between classes. The same can happen with signals and slots, of course, but the simplicity of the interface makes maintenance easier.




Reply With Quote
Bookmarks