The following members of class QSocketNotifier are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.
(deprecated) void |
activated(int socket) | [see note below] |
Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.
[private signal]
void QSocketNotifier::activated(int socket)This function is deprecated. We strongly advise against using it in new code.
To avoid unintended truncation of the descriptor, use the QSocketDescriptor overload of this function. If you need compatibility with versions older than 5.15 you need to change the slot to accept qintptr if it currently accepts an int, and then connect using Functor-Based Connection.
This signal is emitted whenever the socket notifier is enabled and a socket event corresponding to its type occurs.
The socket identifier is passed in the socket parameter.
Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.
Note: Signal activated is overloaded in this class. To connect to this signal by using the function pointer syntax, Qt provides a convenient helper for obtaining the function pointer as shown in this example:
connect(socketNotifier, QOverload<int>::of(&QSocketNotifier::activated), [=](int socket){ /* ... */ });
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: