NetworkInformation QML Type

네트워크 관련 정보에 대한 크로스 플랫폼 인터페이스를 제공합니다. 더 보기...

Import Statement: import QtNetwork
Since: Qt 6.7
In C++: QNetworkInformation

속성

상세 설명

NetworkInformation은 네트워크 관련 정보에 대한 크로스 플랫폼 인터페이스를 제공합니다.

NetworkInformation은 싱글톤입니다.

QNetworkInformation참조하세요 .

속성 문서

isBehindCaptivePortal : bool [read-only]

사용자의 디바이스가 현재 캡티브 포털 뒤에 있는 것으로 알려져 있는지 여부를 나타냅니다.


isMetered : bool [read-only]

현재 연결이 미터링되는지(알려진지) 여부를 반환합니다.


reachability : enumeration [read-only]

시스템 네트워크 연결의 현재 상태를 보유합니다.

상수설명
NetworkInformation.Reachability.Unknown연결이 설정되었지만 OS에서 아직 완전한 연결을 확인하지 못했거나 이 기능이 지원되지 않습니다.
NetworkInformation.Reachability.Disconnected시스템이 전혀 연결되지 않았을 수 있습니다.
NetworkInformation.Reachability.Local시스템이 네트워크에 연결되어 있지만 로컬 네트워크에 있는 장치에만 액세스할 수 있습니다.
NetworkInformation.Reachability.Site시스템이 네트워크에 연결되어 있지만 로컬 서브넷 또는 인트라넷에 있는 장치에만 액세스할 수 있습니다.
NetworkInformation.Reachability.Online시스템이 네트워크에 연결되어 있고 인터넷에 액세스할 수 있습니다.

transportMedium : enumeration [read-only]

애플리케이션의 현재 활성 전송 매체를 보유합니다.

상수설명
NetworkInformation.TransportMedium.UnknownOS가 활성 매체가 없다고 보고하면 활성 매체가 Qt에서 인식되지 않거나 TransportMedium 기능이 지원되지 않습니다.
NetworkInformation.TransportMedium.Ethernet현재 활성 연결이 이더넷을 사용하고 있습니다. 참고: Windows가 Bluetooth 개인 영역 네트워크에 연결된 경우에도 이 값이 반환될 수 있습니다.
NetworkInformation.TransportMedium.Cellular현재 활성 연결이 셀룰러 네트워크를 사용하고 있습니다.
NetworkInformation.TransportMedium.WiFi현재 활성 연결이 Wi-Fi를 사용하고 있습니다.
NetworkInformation.TransportMedium.Bluetooth현재 활성 연결이 블루투스를 사용하여 연결되어 있습니다.

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.