What is the minimum dependence to use QtNetwork classes

77 views Asked by At

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?

1

There are 1 answers

1
TheDarkKnight On

By using QTcpSocket, you're likely to want an event loop. This is provided by QCoreApplication, or QApplication if you're using widgets.