Re: Accessing GUI widget from different class
Off topic, but Op has circular reference => design error.
Main window composed of sslserver, and sslserver impl also needs full knowledge of MainWindow.
edit:
I think that main window code in your sslserver is just you being a bit confused. You want to be updating the existing mainwin nit creating a new one. So there you should emit a signal with the new count as an argument. Connect that signal to a slot on your mainwin, and from there you can update the label text
Last edited by amleto; 4th December 2012 at 21:52.
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
Bookmarks