Top "Qtnetwork" questions

The QtNetwork module provides classes to make network programming easier and portable.

QEventLoop proper usage

I have doubts how should I use QEventLoop. I have 2 pieces of code, both of them work for me (get …

qt qtnetwork qeventloop
Obtaining MAC address on windows in Qt

I am attempting to obtain mac address on windows xp using this code: QString getMacAddress() { QString macaddress="??:??:??:??:??:??"; #ifdef Q_WS_…

qt4 qtnetwork
Get the ping from a remote target with Qt (Windows/Linux)

Currently I use this code for retrieving the ping of a target system. However it works so far only under …

c++ qt ping qtnetwork qabstractsocket
How to get the hostname using Qt?

How to get the host name of my desktop PC? Like this, to get system information for Symbian OS: http://…

c++ qt ubuntu qtnetwork
QFile to QByteArray save file name

I have a QFile that needs to be sent through a LAN network. In order to do so, I convert …

c++ qt qtnetwork qfile qbytearray
Qt: default connection timeout for QTcpSocket

Please advise how can I setup default connection timeout without using blocking waitForConnected() method? I noticed that socket emit error …

qt qtnetwork qtcpsocket
Is there any way to building static Qt with static OpenSSL?

Original question was slightly different but part of a more major question. I am trying to build Qt 5.2 as static …

c++ qt static openssl qtnetwork
Qt synchronous QNetworkAccessManager get

What's the proper way to do a synchronous QNetworkAccessManager::get ? The qt wiki offers an approach, but states "it is …

qt http-get synchronous qtnetwork
QUdpSocket: How to make multicast work also on localhost but prevent loopback per application?

My Qt application uses multicast QUdpSocket and need half-duplex operation (it simulates radio transfer between simplex radiostations). It means that …

qt qtnetwork qudpsocket
Getting MAC ID in Qt

I am using the following code to get the MAC ID in Qt. main.cpp #include <QtCore/QCoreApplication> #…

qt qtnetwork