Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Structure



  • Hello
    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?

    att.



  • 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! ;-)


Log in to reply