PyQt6 and QSocketNotifier

Phil Thompson phil at riverbankcomputing.com
Wed Jan 13 22:33:30 GMT 2021


On 13/01/2021 22:18, Florian Bruhin wrote:
> On Wed, Jan 13, 2021 at 08:30:35PM +0300, Dmitry Shachnev wrote:
>> Hi Phil!
>> 
>> On Wed, Jan 13, 2021 at 11:44:28AM +0000, Phil Thompson wrote:
>> > I omitted it because of the use of the undocumented QSocketDescriptor of the
>> > activated() signal, without which the class is useless. However, on
>> > checking, the API hasn't changed since Qt5. So I've restored it with the
>> > same API. I don't know whether or not it works properly but at least it is
>> > consistent with PyQt5.
>> 
>> Thank you! In PyQt5 I am using the activated() signal but not its 
>> argument,
>> so the existing behavior is fine for me.
> 
> Same here FWIW - I wouldn't call it useless at all, the argument is 
> only
> needed if you're using it to watch multiple sockets at once (which I
> don't).

Sorry, I meant it would be useless without the signal, not the argument.

Phil


More information about the PyQt mailing list