Unfortunately, in Qt3 you must use signals & slots mechanism for QSocket. This means also that you can't wait in a loop for it to connect.Originally Posted by olberg
Unfortunately, in Qt3 you must use signals & slots mechanism for QSocket. This means also that you can't wait in a loop for it to connect.Originally Posted by olberg
Last edited by jacek; 8th May 2006 at 10:41. Reason: fixed a typo
You could use QSocketNotifier here (I think -- I never used it myself).
Thanks, my little program works now, using slots. I have been using QSocketNotifier before and I am convinced that would work, too. I wanted something quick and dirty here, that's why I hadn't used slots right away in this example.
Bookmarks