Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt app passing arguments to send in sockets
Forum Updated to NodeBB v4.3 + New Features

Qt app passing arguments to send in sockets

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.1k Views 1 Watching
  • 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.
  • I Offline
    I Offline
    intensified
    wrote on last edited by
    #1

    I'm wondering would it be possible to integrate a separately written c++ client socket script to a qt gui that I've created with for example, pushbuttons and when clicked an argument assigned with that pushbutton would be sent via the sockets over to the server side?

    So, when the app starts the client will establish a connection with the server and wait for data to be sent. When a button is clicked, the "data" associated with it will be sent over the sockets or when the app is closed the sockets will close. As I'm quite new to Qt, if possible I hope someone could provide some suggestions on how to go about it and examples would really help.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome do devnet,

      Sure you can, Qt doesn't forbid you to use other libraries.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • I Offline
        I Offline
        intensified
        wrote on last edited by
        #3

        I was planning to put my entire client code in the main qt file so that when the program executes, the sockets would be established. But I'm not very sure how to go about passing the arguments from the pushbuttons to the client script.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Then I would recommend that you first go through the examples and tutorials from Qt's documentation to understand how things works then add your socket code.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved