Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Structure

    General and Desktop
    2
    2
    1275
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      alangregory last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • R
        redkite last edited by

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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post