>>> from PyQt4 import QtCore
>>> str = QtCore.QString('Hello')
AttributeError: 'module' object has no attribute 'QString'
>>> QtCore.QString._init_(self)
AttributeError: 'module' object has no attribute 'QString'
Sì, ho letto QString Class ReferenceCome creare QString in PyQt4?
Perché non è possibile importare QString
da QtCore
, come specificato nella documentazione?
Cosa importazione stai usando per leggere QtCore – Mark
import sys da PyQt4 importazione QtGui, QtCore –