1
如何從python列表中派生QVector
?PyQt4 - 將列表轉換爲QVector
我試圖
from PyQt4.QtCore import * #... is QVector herein?
[...]
v=QVector()
for l in list:
v.append(l)
的關鍵問題是,我想使用預計QVector
作爲輸入,其中通過一個簡單的Python列表將導致錯誤的方法。此外name 'QVector' is not defined
。詳情請參閱https://gis.stackexchange.com/questions/212252/unexpected-bevaviour-of-qgslinevectorlayerdirector-makegraph-when-passing-li。
UPDATE QtCore.PYQT_VERSION_STR
給我'4.10.2'
,所以這不應該是一個版本的問題。