Obsolete Members for QSocketNotifier
QSocketNotifier 클래스의 다음 멤버들은 더 이상 사용되지 않습니다. 이 멤버들은 기존 소스 코드가 계속 작동하도록 하기 위해 제공됩니다. 새로운 코드에서는 이 멤버들을 사용하지 않는 것을 강력히 권장합니다.
신호
(deprecated in 5.15) void | activated(int socket) | [see note below] |
참고: 이 신호는 비공개 신호입니다. 신호 연결에서 사용할 수는 있지만, 사용자가 직접 발생시킬 수는 없습니다.
멤버 함수 문서
[private signal, deprecated in 5.15] void QSocketNotifier::activated(int socket)
이 함수는 5.15 버전부터 더 이상 사용되지 않습니다. 새로운 코드에서는 이 함수를 사용하지 않는 것을 강력히 권장합니다.
디스크립터의 의도하지 않은 잘림을 방지하려면 이 함수의 QSocketDescriptor 오버로드 버전을 사용하십시오. 5.15보다 이전 버전과의 호환성이 필요한 경우, 현재 int를 받는 슬롯을 qintptr을 받도록 변경한 다음, Functor-Based Connection을 사용하여 연결해야 합니다.
이 신호는 소켓 알림 기능이 활성화되어 있고, 소켓의 type 에 해당하는 소켓 이벤트가 발생할 때마다 발송됩니다.
소켓 식별자는 socket 매개변수를 통해 전달됩니다.
참고: 이 신호는 비공개 신호입니다. 신호 연결에서 사용할 수 있지만 사용자가 직접 발생시킬 수는 없습니다.
참고: 이 신호는 오버로드되어 있습니다. 이 신호에 연결하려면:
// Connect using qOverload:
connect(socketNotifier, qOverload(&QSocketNotifier::activated),
receiver, &ReceiverClass::slot);
// Or using a lambda:
connect(socketNotifier, qOverload(&QSocketNotifier::activated),
this, [](int socket) { /* handle activated */ }); © 2026 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.