Mon développement eviroment:AttributeError: objet 'module' n'a pas d'attribut 'QtString'
os: windows xp
python: python-3.1.2.msi
pyqt: PyQt-Py3.1-gpl-4.7.4-1.exe
Code:
import sys
from PyQt4 import QtCore, QtGui
app = QtGui.QApplication(sys.argv)
s = QtCore.QtString()
sys.exit(app.exec_())
Il me montrent toujours
in 'module'
s = QtCore.QtString()
AttributeError: 'module' object has no attribute 'QtString'
I chaged code:
import sys
from PyQt4.QtGui import *
from PyQt4.QtCore import *
app = QApplication(sys.argv)
s = QtString()
sys.exit(app.exec_())
Ensuite, il me montrent toujours comme ça:
in 'module'
s = QtString()
NameError: name 'QtString' is not defined
Que dois-je faire?
Il devrait être' QString' – sje397