I have attached a test that shows a possible regression in
QtGui.QColor.fromRgb() PyQt 4.7. In past releases we have been able to
get the color the grid lines in a table from the current style and
convert it to a QColor. For some reason PyQt raises a TypeError
exception:

Raw color: -2565928
Traceback (most recent call last):
  File "test_fromrgb.py", line 7, in <module>
    color = QtGui.QColor.fromRgb(raw_color)
TypeError: arguments did not match any overloaded call:
  QColor.fromRgb(int): argument 1 has unexpected type 'int'
  QColor.fromRgb(int, int, int, int alpha=255): not enough arguments

Is this a valid use of the method, and if so any ideas what is going wrong?

Thanks,
Aron

Attachment: test_fromrgb.py
Description: Binary data

_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to