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 not executing after connecting with server

Qt not executing after connecting with server

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 3 Posters 495 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.
  • A Offline
    A Offline
    azhagan2
    wrote on last edited by
    #1

    I am using Qt for a client GUI application. For that, I am cross-compiling my GUI to a server in a RfSoC board. During execution, after connecting the client to the server, my GUI stops/strikes.

    I printed debug messages using qDebug(). I concluded that, after connecting to the server, it still.

    But, when I connected to the same server in a local system, it connected and made use of work.

    What will be the issue ?, with my Qt,

    SGaistS 1 Reply Last reply
    0
    • A azhagan2

      I am using Qt for a client GUI application. For that, I am cross-compiling my GUI to a server in a RfSoC board. During execution, after connecting the client to the server, my GUI stops/strikes.

      I printed debug messages using qDebug(). I concluded that, after connecting to the server, it still.

      But, when I connected to the same server in a local system, it connected and made use of work.

      What will be the issue ?, with my Qt,

      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What are you using to connect to your server ?
      Are you sure the connection is successful ?
      Are you using any blocking loop ?

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

      A 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        What are you using to connect to your server ?
        Are you sure the connection is successful ?
        Are you using any blocking loop ?

        A Offline
        A Offline
        azhagan2
        wrote on last edited by
        #3

        @SGaist Hello, Thanks for responding. I am using TCP to connect the socket. Yes, the connection is made successfully, and I printed a message after the connection has made.

        Yes, I think I am using a blocking loop, like,

        connect(mysocket, SIGNAL(readyRead()), this, SLOT(readyRead()));
        detailLabel = new QLabel(this);
        detailLabel->setWordWrap(true);
        

        Is this the thing, which is blocking my code to execute ?

        JonBJ 1 Reply Last reply
        0
        • A azhagan2

          @SGaist Hello, Thanks for responding. I am using TCP to connect the socket. Yes, the connection is made successfully, and I printed a message after the connection has made.

          Yes, I think I am using a blocking loop, like,

          connect(mysocket, SIGNAL(readyRead()), this, SLOT(readyRead()));
          detailLabel = new QLabel(this);
          detailLabel->setWordWrap(true);
          

          Is this the thing, which is blocking my code to execute ?

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @azhagan2
          This is not a loop, and does not block. You are looking for something which loops, like some while (....) { ... }, that does not allow the Qt main event loop to run till it finishes.

          A 1 Reply Last reply
          0
          • JonBJ JonB

            @azhagan2
            This is not a loop, and does not block. You are looking for something which loops, like some while (....) { ... }, that does not allow the Qt main event loop to run till it finishes.

            A Offline
            A Offline
            azhagan2
            wrote on last edited by
            #5

            @JonB No, I am not using any loop in the code

            JonBJ 1 Reply Last reply
            0
            • A azhagan2

              @JonB No, I am not using any loop in the code

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by
              #6

              @azhagan2 Then nobody can tell from the detail you have given so far, produce a minimal reproducible example.

              1 Reply Last reply
              0
              • A azhagan2 has marked this topic as solved on

              • Login

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