Checking if a device has an active internet connection
-
@jsulm I am a newbie and async stuff look really difficult. Even then, I only need to check for internet connection very few times/day in my program
@RaptaG It is not that difficult and you should really learn it, else there is no point in using Qt.
QTcpSocket has a signal: https://doc.qt.io/qt-6/qabstractsocket.html#connected
Just connect a slot to it and if this slot is called you're connected. -
@RaptaG It is not that difficult and you should really learn it, else there is no point in using Qt.
QTcpSocket has a signal: https://doc.qt.io/qt-6/qabstractsocket.html#connected
Just connect a slot to it and if this slot is called you're connected. -
@jsulm I want to learn to use Qt properly, because I want to implement a GUI for my C++ project with it. Where eould suggest me to start learning Qt, considering I am a C++ beginner?
@RaptaG You can start with the basic example applications https://doc.qt.io/qt-6/qtexamplesandtutorials.html