With PyQt4, I had always been able to initialize QBrush and QColor with None as argument (creates no color etc):
QBrush(None)
QColor(None)
But after I upgraded from 4.11.3 to 4.11.4 (which is a minor upgrade), I found these are no longer accepted:
>>> QColor(None)
Traceback (most recent call last):
File "<console>", line 1, in <module>
TypeError: arguments did not match any overloaded call:
QColor(Qt.GlobalColor): argument 1 has unexpected type 'NoneType'
QColor(int): too many arguments
QColor(QVariant): argument 1 has unexpected type 'NoneType'
QColor(): argument 1 has unexpected type 'NoneType'
QColor(int, int, int, int alpha=255): argument 1 has unexpected type 'NoneType'
I have tried to search on the changes between 4.11.3 and 4.11.4 but cannot see any relevant information that explains this. And I started to wonder if I am searching the right thing.
Is this caused by the changes in Qt? or PyQt4? or python-SIP?
Also I don't actually understand what the underlying (C++) call in Qt is. Is it actually calling QBrush() and QColor() or is it trying to change Python None to c null?
Thanks, I hope I didn't miss something obvious online.