Thanks for replying, I'll do more tests now I have it confirmed it's uncommon- it's difficult because mostly it will send instantly as mentioned but definatley sometimes I press a button on my app which should just write to an opened socket and there is no activity for minutes in wireshark.
I'm not sure about blocking event loop thread - I am of the understanding I don't need to use threads with Qt for such activity so whenever a button is pressed in my app my qml will call c++ function and if the socket is null in my c++ class I create and connect it and send data in my connected slot or if it's not null I just write the data. Can you see a problem doing it like that?
Thanks again
Added after 1 27 minutes:
The problem still exists even when the server is local.
I am not using QThreads in my app - can someone tell me should I be using them - could that be the problem?
There is definitely nothing being sent for a few minutes sometimes from Qt according to Wireshark - I find it hard to believe myself.
Added after 7 minutes:
Some more information that might help somebody to help me - just waited about 3-4 mins for my data to be sent from Qt - I pressed the qml button 4 times in this time and there is no Wireshark activity (there should be 4 writes to server) but then after 4 minutes I see one single packet being sent in Wireshark which contains all strings I am sending seperatley so they are getting bunched up and getting sent sometimes after 4 minutes (random amount).
Please help!