Solved Can't find QtXmlPatterns
-
Hi all,
I am brand new to Qt, so this may be a simple question but a few minutes of googling didn't find me what I needed.
I am trying to add xml file validation to my project. I have a schema I want to validate against, and I have been reading in the documentation about the QXmlSchema and QXmlSchemaValidator classes. I added #include <QtXmlPatterns> to my project, but it complains "QtXmlPatterns file not found". QtXmlPatterns was referred to as a "module" in the documentation, is this something I need to download and install separately, or do I have a path or something incorrect?
If someone could point me in the right direction, I'd appreciate it!
thanks,
mktaj -
Hi,
Did you add
QT += xmlpatterns
as shown in the module description page ? -
D'Oh! (headslap). I can't believe I missed that. That was the problem. Thanks for your help!
mktaj
-
You're welcome !
Since you have it working now, please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)