1
我正在嘗試將PyQt的qimage2ndarray移植到PySide。代碼的一部分蟒似乎如果我改變從PyQt的進口到PySide工作,但SIP部分將PySide對象傳遞給C++
http://www.informatik.uni-hamburg.de/~meine/hg/qimage2ndarray/file/0682b7bcaca3/qimageview.sip
沒有。它給人的錯誤:
qimageview(): argument 1 has unexpected type 'PySide.QtGui.QImage'
我由頗爲驚訝,因爲該功能與
qimageview(QImage &image)
如何投下PySide.QtGui.QImage
到可以C++中使用的QImage
界定?
我從來沒有使用過SIP,也沒有其他任何東西比scipy.weave嵌入C++到Python。也許SIP不適合PySide?