Qt 6.11 is out! See what's new in the release
blog
How to find which network interface is up in Qt
General and Desktop
1
Posts
1
Posters
1.1k
Views
1
Watching
-
Suppose i have two network cards one for lan and other for wlan, How can i find the name of card which is connected to internet. like eth0 or eth1.
@ QNetworkInterface netInterface;
interface = netInterface.name();@How to initialize netInterface, so that it returns the correct name