Obsolete Members for QSocketNotifier
クラスQSocketNotifier の以下のメンバーは非推奨です。これらは古いソース・コードの動作を維持するために提供されています。新しいコードでは使用しないことを強くお勧めします。
シグナル
(deprecated) void | activated(int socket) | [see note below] |
注意: これはプライベート・シグナルです。シグナル接続で使用することはできますが、ユーザーが発することはできません。
メンバー関数ドキュメント
[private signal, deprecated]
void QSocketNotifier::activated(int socket)
この関数は非推奨である。新しいコードでは使用しないことを強くお勧めします。
記述子の意図しない切り捨てを避けるには、この関数の QSocketDescriptor オーバーロードを使用してください。5.15より古いバージョンとの互換性が必要な場合は、現在intを受け付けるスロットをqintptrを受け付けるように変更し、Functor-Based Connectionを使用して接続する必要があります。
このシグナルは、ソケットノーティファイアが有効で、type に対応するソケットイベントが発生するたびに発行される。
socket パラメータにソケット識別子を渡す。
注意: これはプライベートシグナルである。シグナル接続で使用することはできるが、ユーザが発することはできない。
注意:このクラスでは、Signalactivatedがオーバーロードされています。関数ポインタ構文を使用してこのシグナルに接続するために、Qtはこの例に示すように関数ポインタを取得する便利なヘルパーを提供しています:
connect(socketNotifier, QOverload<int>::of(&QSocketNotifier::activated), [=](int socket){ /* ... */ });
© 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.