因为Qt是C++实现的,所以有List等概念的对象。但对于PyQt,因为python本身支持List等,所以就没有这个对象了。
in PyQt, there is no QString
and hence no need for QStringList
.
Any Qt API that would normally return a QString
, will automatically return a Python string instead. Similarly, any Qt APIs that would normally return a QStringList
will return a Python list containing Python strings. And the opposite also applies: any Qt API that would normally accept a QString
or QStringList
will accept the Python equivalents instead.