Obsolete Members for QSocketNotifier
Los siguientes miembros de la clase ` QSocketNotifier ` están obsoletos. Se proporcionan para que el código fuente antiguo siga funcionando. Recomendamos encarecidamente no utilizarlos en código nuevo.
Señales
(deprecated in 5.15) void | activated(int socket) | [see note below] |
Nota: Se trata de una señal privada. Se puede utilizar en conexiones de señales, pero el usuario no puede emitirla.
Documentación de las funciones miembro
[private signal, deprecated in 5.15] void QSocketNotifier::activated(int socket)
Esta función está obsoleta desde la versión 5.15. Recomendamos encarecidamente no utilizarla en código nuevo.
Para evitar un truncamiento involuntario del descriptor, utiliza la sobrecarga QSocketDescriptor de esta función. Si necesitas compatibilidad con versiones anteriores a la 5.15, debes cambiar la ranura para que acepte qintptr si actualmente acepta un int, y luego conectarte utilizando una conexión basada en funtor.
Esta señal se emite siempre que el notificador de sockets esté habilitado y se produzca un evento de socket correspondiente a su « type ».
El identificador del socket se pasa en el parámetro socket.
Nota: Se trata de una señal privada. Se puede utilizar en conexiones de señales, pero el usuario no puede emitirla.
Nota: Esta señal está sobrecargada. Para conectarse a esta señal:
// 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.