Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Can't find QtXmlPatterns
Forum Updated to NodeBB v4.3 + New Features

Can't find QtXmlPatterns

Scheduled Pinned Locked Moved Solved Installation and Deployment
4 Posts 2 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mktaj
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Did you add QT += xmlpatterns as shown in the module description page ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • M Offline
        M Offline
        mktaj
        wrote on last edited by
        #3

        D'Oh! (headslap). I can't believe I missed that. That was the problem. Thanks for your help!

        mktaj

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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 :)

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved