<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[get the interface of network]]></title><description><![CDATA[<p dir="auto">how can i get what interface is system is using to connect Internet??<br />
i want to know if system using wifi or Ethernet to go online.</p>
<p dir="auto">is there any way?</p>
]]></description><link>https://forum.qt.io/topic/90267/get-the-interface-of-network</link><generator>RSS for Node</generator><lastBuildDate>Sun, 14 Jun 2026 11:47:08 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/90267.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 29 Apr 2018 04:38:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to get the interface of network on Sun, 29 Apr 2018 09:02:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sierdzio">@<bdi>sierdzio</bdi></a></p>
<p dir="auto">thanks it's working.</p>
]]></description><link>https://forum.qt.io/post/455403</link><guid isPermaLink="true">https://forum.qt.io/post/455403</guid><dc:creator><![CDATA[saber]]></dc:creator><pubDate>Sun, 29 Apr 2018 09:02:35 GMT</pubDate></item><item><title><![CDATA[Reply to get the interface of network on Sun, 29 Apr 2018 08:49:07 GMT]]></title><description><![CDATA[<p dir="auto">You have just printed the int value of an enum ;-) That won't tell you anything.</p>
<pre><code>QNetworkAccessManager manager;
const auto config = manager.activeConfiguration();
qDebug() &lt;&lt; config.bearerType() &lt;&lt; config.bearerTypeName();
</code></pre>
]]></description><link>https://forum.qt.io/post/455401</link><guid isPermaLink="true">https://forum.qt.io/post/455401</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Sun, 29 Apr 2018 08:49:07 GMT</pubDate></item><item><title><![CDATA[Reply to get the interface of network on Sun, 29 Apr 2018 08:43:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sierdzio">@<bdi>sierdzio</bdi></a> i wrote this</p>
<pre><code>qDebug()&lt;&lt; QNetworkConfiguration::Active;

</code></pre>
<p dir="auto">output is "14" .</p>
<p dir="auto">i am using  my mobile Tethering .</p>
]]></description><link>https://forum.qt.io/post/455399</link><guid isPermaLink="true">https://forum.qt.io/post/455399</guid><dc:creator><![CDATA[saber]]></dc:creator><pubDate>Sun, 29 Apr 2018 08:43:55 GMT</pubDate></item><item><title><![CDATA[Reply to get the interface of network on Sun, 29 Apr 2018 07:12:00 GMT]]></title><description><![CDATA[<p dir="auto">Check active configuration in QNAM: <a href="https://doc.qt.io/qt-5/qnetworkaccessmanager.html#activeConfiguration" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qnetworkaccessmanager.html#activeConfiguration</a></p>
<p dir="auto">And there, you can check BearerType. <a href="https://doc.qt.io/qt-5/qnetworkconfiguration.html#BearerType-enum" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qnetworkconfiguration.html#BearerType-enum</a></p>
]]></description><link>https://forum.qt.io/post/455391</link><guid isPermaLink="true">https://forum.qt.io/post/455391</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Sun, 29 Apr 2018 07:12:00 GMT</pubDate></item></channel></rss>