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現在アクティブな接続は Ethernet を使用しています。注意:この値は、Windows が Bluetooth パーソナル・エリア・ネットワークに接続されている場合にも返されることがあります。
NetworkInformation.TransportMedium.Cellular現在アクティブな接続がセルラーネットワークを使用しています。
NetworkInformation.TransportMedium.WiFi現在アクティブな接続はWi-Fiを使用しています。
NetworkInformation.TransportMedium.Bluetooth現在アクティブな接続は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.