Qt6 WebEngine: QWebEnginePage.FindFlag should be flags

Florian Bruhin me at the-compiler.org
Thu Aug 26 16:21:35 BST 2021


Another one, sorry for the spam for everyone who isn't interested in
those, but I suppose separate mails make it easier to track things (and
ask for clarification, if required).

It looks like QWebEnginePage.FindFlag is an enum rather than flags:

    >>> from PyQt6.QtWebEngineCore import QWebEnginePage
    >>> QWebEnginePage.FindFlag
    <enum 'FindFlag'>
    >>> QWebEnginePage.FindFlag.FindBackward | QWebEnginePage.FindFlag.FindCaseSensitively
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    TypeError: unsupported operand type(s) for |: 'FindFlag' and 'FindFlag'


            me at the-compiler.org | https://www.qutebrowser.org 
       https://bruhin.software/ | https://github.com/sponsors/The-Compiler/
       GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
             I love long mails! | https://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20210826/341aefe5/attachment.sig>

More information about the PyQt mailing list