Qt not executing after connecting with server
-
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,
-
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,
Hi,
What are you using to connect to your server ?
Are you sure the connection is successful ?
Are you using any blocking loop ? -
Hi,
What are you using to connect to your server ?
Are you sure the connection is successful ?
Are you using any blocking loop ?@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 ?
-
@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 ?
-
@azhagan2
This is not a loop, and does not block. You are looking for something which loops, like somewhile (....) { ... }, that does not allow the Qt main event loop to run till it finishes. -
A azhagan2 has marked this topic as solved on