No idea, your code is obviously more than what you have posted.
0 is the value of a null pointer, so no parent.
Yes, though you most likely don't need threads here at all (Qt's networking code operates event based by default).
Signals can carry arguments. Since it is unlikely that the data received via socket is directly usable by a QGLWidget, you will probably want to receive it in a slot that interprets the data.
Can of course be in a slot of a class derived from QGLWidget, though it is probably cleaner to use a dedicated connection/data handling object instead.
Cheers,
_






Reply With Quote

Bookmarks