but this is not the general case. If you call a method and something inside it emits synchronously before you have connected, oops, you missed the signal.
I believe it is better practice to connect before calling methods that can emit.
but this is not the general case. If you call a method and something inside it emits synchronously before you have connected, oops, you missed the signal.
I believe it is better practice to connect before calling methods that can emit.
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.
The thing is connectToHostEncrypted() doesn't emit. It schedules a connection attempt, just like QWidget::show() doesn't show anything but rather schedules showing the widget.
Bookmarks