I wrote a small test/example to show the bug. Here it is:

##############################################
from PyQt4 import *
from PyQt4.QtCore import *
from PyQt4.QtGui import *

print PyQt4.QtCore.PYQT_VERSION_STR

app = QApplication([""])
app.setGraphicsSystem("raster")
##############################################

This will print '4.7.6' and then will crash with error:
AttributeError: 'QApplication' object has no attribute 'setGraphicsSystem'

This same script runs perfectly with 4.7.4
Is that a bug in PyQt4? If "yes", how can I fix that? Or when it will be
fixed?

Regads

-- 
Alexander Nest
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to