AttributeError: 'QPaintEvent' object has no attribute 'region'

Florian Bruhin <[email protected]> Sun, 19 Apr 2020 20:37:43 +0200
Newsgroups gmane.comp.python.pyqt-pykde
Message-ID <[email protected]>
Hey,

I've been getting crash reports looking like this from someone:

  Traceback (most recent call last):
    File "/usr/lib/python3.8/site-packages/qutebrowser/mainwindow/tabwidget.py", line 681, in paintEvent
      if not event.region().intersects(self.tabRect(idx)):
  AttributeError: 'QPaintEvent' object has no attribute 'region'

- PyQt 5.14.2
- Qt 5.14.2
- Python 3.8.2
- sip 5.1.2.
- EndeavourOS Linux which seems to be based on Archlinux

Does anyone have an explanation on how this could happen? Looking at
sip/QtGui/qevent.sip, QPaintEvent definitely has a region() member, and it's
not conditional in any way...

Florian

-- 
[email protected] (Mail/XMPP) | 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/

_______________________________________________
PyQt mailing list    [email protected]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEE4E5WAAJAG47w528KkW6wyP1VoHIFAl6cmncACgkQkW6wyP1V
oHIZqQ/+NCEz4JwrcPrZ+D1kRaRM3tcxx8miXwYDgtZ4XUkOJy0llSUED2kk4LJ0
1GSXBMY1iMwY2mntYe49+KuXFD5T1yPqGA7TGz1yQvCwqamO8MW6uDgU16kner1y
Zxrn69rChDNYm25s64gUDY2+nlagjX4VgIuAC35Ki1phUhvQSfkQcxKci9cFnztv
S8EriDxb82GYAguI53YXJgNFg56LEkuMKkhIGN9y7rkcBLGiVOKS3x2zTpbxDv5o
JrN1YwGLhITsM9bnwFRHDyH+7tsh0DBBoYYsnQshZVX6IUEXOzf3ELbug/Bpga7u
QI9OtvW5fWRMOI8WnvZgELZuJvx3AVWClQsclK0ZrkaoM5+L2AKpLwRP0ZuEAWKV
1xUBPgB6rVVx4dry1NqhJyyoFhihsVgcE5g23P2U26bYe6eo5LqcvRRwxJJOUNSr
eEEn76ERhgIXkRGiO+oIGRn+VUFIdSYnWzazeWvzvlsWbklj1hwhAJuLOSy7225Q
5j1HfD/C8/di+Ltbkg+YjkopKLarypaciuZCYn+pJLCb/wfTbq2Tq/SWLTmLrGfd
Fjoee8BgDpUq0J053DQPWnSD7dvDkiTM2y/8RGxs12TAJ2Jy42AGAc4a4kRVMNM8
RyAeX2OeWOTNvHQzKOUaGRJXI+/xBv6xKVOgR4R5vMMo+8bwR6A=
=4aS8
-----END PGP SIGNATURE-----