PyQT里没有Qt的QString,QList,QStringList等

来源:互联网 发布:unity3d 随机数 编辑:程序博客网 时间:2024/05/21 17:06

因为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.


0 0
原创粉丝点击