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. Configurable Data Struct for TCP/IP
Forum Updated to NodeBB v4.3 + New Features

Configurable Data Struct for TCP/IP

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 464 Views 2 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.
  • R Offline
    R Offline
    rizoritis
    wrote on last edited by
    #1

    Hello all,

    I have made a configurable UI using C++ and Qt QML. Basically I can drag and drop buttons and indicators, etc. I would like to be able to identify variables within the configurable UI post build and deployment (without accessing the C++ source) that can be transmitted and received over TCP/IP to a separate application. Basically, I need a way to dynamically change the TCP/IP structure post build and deployment from my configurable QML UI. Any ideas on what the best way to do this is? Thanks in advance!

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by dheerendra
      #2

      TCP/IP is stream oriented. It does not worry about the data structure. Since you are asking the post build, best thing is to make JSON or XML format of your data. You can read this as binary data and transmit over the TCP/IP.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      4
      • R Offline
        R Offline
        rizoritis
        wrote on last edited by
        #3

        How do you decide which type (bool, int, etc.) each variable is on the receiver side given that it is different for each configured UI project? There has to be a way of identifying it from the UI and then decoding it on the receiver.

        Also, can this XML or JSON file be generated based on what is input in the QML UI?

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

          Hi,

          Out of curiosity, why not send directly your QML file ?

          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
          2

          • Login

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