I want to use QTcpSocket
and QSslSocket
in my shared library, but I confused by necessity to create QCoreApplication
. Maybe I'm mistaken and there is no need to create QtCoreApplication
? What is the minimum dependence to use Qt Sockets?
Asked
Active
Viewed 74 times
1

Maxim Makhun
- 2,197
- 1
- 22
- 26

Dcow
- 1,413
- 1
- 19
- 42
1 Answers
2
By using QTcpSocket, you're likely to want an event loop. This is provided by QCoreApplication, or QApplication if you're using widgets.

TheDarkKnight
- 27,181
- 6
- 55
- 85
-
Indeed. Although you can use the network functionality without an event loop, it is highly discouraged. – Kurt Pattyn Jan 20 '14 at 17:03