shiboken2 compiles
Solved
Qt for Python
-
I want to compile my c++ module with shiboken2
this is my c++ header file
#ifndef ZIPSMODULE_ZIPFILES_H #define ZIPSMODULE_ZIPFILES_H #include <QObject> #include <QString> class ZipFiles : QObject { Q_OBJECT ZipFiles(QString sevenz_dll_path, QString zip_file_path, int volume_size); ~ZipFiles(); public: bool zipFilesWithInOut(std::map<std::wstring, std::wstring> &zipped_file); private: void progressCallback(uint64_t progress_size); signals: void progress_value(uint64_t progress_size, uint64_t total_size); private: int _volume_size; QString _7z_dll_path; QString _zip_file_path; uint64_t _total_size; }; #endif //ZIPSMODULE_ZIPFILES_H
this is my bindings.xml file
<?xml version="1.0"?> <typesystem package="zipFilesModule"> <load-typesystem name="typesystem_core.xml" generate="no"/> <load-typesystem name="core_common.xml" generate="no"/> <load-typesystem name="typesystem_core_common.xml" generate="no"/> <load-typesystem name="typesystem_printsupport.xml" generate="no"/> <primitive-type name="bool"/> <primitive-type name="qstring"/> <primitive-type name="int"/> <primitive-type name="std::map"/> <object-type name="ZipFiles"> </object-type> </typesystem>
then I compiles it, success
but when I load it in python, it is has some errors,
how could I solve this proplem -
Hi and welcome to devnet,
You do not have a constructor without argument.