can anyone tell me how to access Qt's Xml-functionality like QDomDocument and stuff like that?
From what I understand PythonQt automatically generates some wrappers for standard Qt-classes (and puts them into the folder generated_cpp)… but how can I use those wrappers… meaning: Do I have to register any of them manually?
For example I tried to put the following line into my Python-script…
fromPythonQt.QtXmlimportQDomDocument
… but this does not work! :(
Thanks in advance & best regards
Alex
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi there,
can anyone tell me how to access Qt's Xml-functionality like QDomDocument and stuff like that?
From what I understand PythonQt automatically generates some wrappers for standard Qt-classes (and puts them into the folder generated_cpp)… but how can I use those wrappers… meaning: Do I have to register any of them manually?
For example I tried to put the following line into my Python-script…
… but this does not work! :(
Thanks in advance & best regards
Alex
You need to include PythonQt_All in you C++ excutable and run
PythonQt_All::init()
after initializing PythonQt itself. This will add all Qt wrappers that are available.
Have a look at the examples, most examples add PythonQt_All.
regards,
Florian
Hi Florian,
thanks to you I got the QXml-thing to work, thank you for your quick answer!
And in general: Thanks for this really helpful library!
BR,
Alex