1

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?

Maxim Makhun
  • 2,197
  • 1
  • 22
  • 26
Dcow
  • 1,413
  • 1
  • 19
  • 42

1 Answers1

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