I am a beginner in C + + and I need an opinion on QT.
I want to create an app with a GUI that interacts with an object of type QTCPsocket, but I want this object to be accessible to all forms, like a global variable, to read and write to the socket.
Any thoughts on good practice or an appropriate structure?
Put a pointer of your QTcpSocket object statically in one of your class, but I think that a book on C++ introduction could help you more than me! ;-)