Menu

Problem accessing QtXml

Help
superfisi
2011-01-27
2013-04-06
  • superfisi

    superfisi - 2011-01-27

    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…

    from PythonQt.QtXml import QDomDocument
    

    … but this does not work! :(

    Thanks in advance & best regards

    Alex

     
  • Florian Link

    Florian Link - 2011-01-27

    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

     
  • superfisi

    superfisi - 2011-01-28

    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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.