Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Adding QXmlQuery to project
Qt 6.11 is out! See what's new in the release blog

Adding QXmlQuery to project

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 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.
  • N Offline
    N Offline
    nicky j
    wrote on last edited by
    #1

    Hello,

    I would like to add QXmlQuery to my project and I have tried using
    @#include <QXmlQuery>@
    in the header, but it just gets a greenish-yellow underline and doesn't appear to recognize it. What am I doing wrong? I'm sure its a n00b mistake but help would be appreciated anyway.

    Thanks!

    1 Reply Last reply
    0
    • GianlucaG Offline
      GianlucaG Offline
      Gianluca
      wrote on last edited by
      #2

      Look at the documentation, and check if all requirement for using QXmlQuery are satisfied:
      http://qt-project.org/doc/qt-5/QXmlQuery.html
      In the page there is a box indicating that you should not only include the file but also specify "QT += xmlpatterns" into your project file.

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

        Hi,

        You are missing

        @QT += xmlpatterns@

        in your pro file

        Edit: split second Gianluca :D

        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
        • N Offline
          N Offline
          nicky j
          wrote on last edited by
          #4

          Oh haha I feel stupid now. Thanks for the answers both of you!

          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