【发布时间】:2010-11-26 21:59:44
【问题描述】:
>>> 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'
是的,我读过QString Class Reference
为什么我不能按照文档中的说明从QtCore 导入QString?
【问题讨论】:
-
你使用什么导入来读取 QtCore
-
import sys from PyQt4 import QtGui, QtCore
标签: python user-interface pyqt