8 May 2020
id 1053363850Is there a tool to automatically convert a qt c++ project to a shiboken project, Bindings. XML cmakelists. TXT is automatically generated?
There is an example inside the shiboken tests that generates xml files from a C++ project, let me find a link
DinoHow can I import QVector? It’s from QtCore right?
I tried:
from PyQt5.QtCore import QByteArray, QDataStream, QIODevice, QVector
DinoI tried:
from PyQt5.QtCore import QByteArray, QDataStream, QIODevice, QVector
why not just use python lists?
Hayk Zneigraswhy not just use python lists?
I tried, it don’t work, I’m trying deserialize a file. I know the code in C++, I’m trying to translate for python
DinoI tried, it don’t work, I’m trying deserialize a file. I know the code in C++, I’m trying to translate for python
the problem is probably not in python lists, but in the way you are doing it
Hayk Zneigrasthe problem is probably not in python lists, but in the way you are doing it
I’m sure the problem is me
DinoI tried:
from PyQt5.QtCore import QByteArray, QDataStream, QIODevice, QVector
This is a group for PySide2, not PyQt5
<container-type name="QVector" type="vector">
<include file-name="QVector" location="global"/>
<conversion-rule>
<native-to-target>
<insert-template name="cppvector_to_pylist_conversion"/>
</native-to-target>
<target-to-native>
<add-conversion type="PySequence">
<insert-template name="pyseq_to_cppvector_conversion"/>
</add-conversion>
</target-to-native>
</conversion-rule>
</container-type>