[PyQt] AttributeError: 'QPaintEvent' object has no attribute 'region'
Florian Bruhin
me at the-compiler.org
Sun Apr 19 19:37:43 BST 2020
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
--
me at the-compiler.org (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/
-------------- 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/20200419/5e3321ec/attachment.sig>
More information about the PyQt
mailing list