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을 허용하도록 슬롯을 변경한 다음 함수 기반 연결을 사용하여 연결해야 합니다.

이 신호는 소켓 알림이 활성화되어 있고 type 에 해당하는 소켓 이벤트가 발생할 때마다 발신됩니다.

소켓 식별자는 socket 매개변수로 전달됩니다.

참고: 이 신호는 비공개 신호입니다. 신호 연결에서 사용할 수 있지만 사용자가 방출할 수는 없습니다.

참고: 이 클래스에서는 신호 활성화가 오버로드됩니다. 함수 포인터 구문을 사용하여 이 신호에 연결하려면 이 예제와 같이 함수 포인터를 얻기 위한 편리한 헬퍼를 Qt에서 제공합니다:

connect(socketNotifier, QOverload<int>::of(&QSocketNotifier::activated),
    [=](int socket){ /* ... */ });

type() 및 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.