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. QScxmlParser file not found

QScxmlParser file not found

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 360 Views
  • 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
    mjs225
    wrote on last edited by
    #1

    I found Qt provide a QScxmlParser class as in https://doc.qt.io/archives/qt-5.7/qscxmlparser.html.
    I installed the "Qt State Machines" module for Qt 6.2, but the compiler still threw "QScxmlParser file not found" error. Is this class deprecated or do I need to install something else?

    A related question: Where can I find if a class is deprecated? I've searched in the "Changes" column of release information (https://wiki.qt.io/Qt_5.8.0_Change_Files) but couldn't find where the scxml module was mentioned.

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by Christian Ehrlicher
      #2

      Did you add the correct directives to use QtScml? See https://doc.qt.io/qt-6/qtscxml-index.html

      When a class is deprecated it is noticed in the docs.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      M 1 Reply Last reply
      0
      • Christian EhrlicherC Christian Ehrlicher

        Did you add the correct directives to use QtScml? See https://doc.qt.io/qt-6/qtscxml-index.html

        When a class is deprecated it is noticed in the docs.

        M Offline
        M Offline
        mjs225
        wrote on last edited by
        #3

        @Christian-Ehrlicher Thanks. I did add Scxml in the CMakeLists.txt, and class like QScxmlStateMachine could be found and linked. It's the class "QScxmlParser" that is not found by the compiler. I cannot find the doc of QScxmlParser either in the Assistant 6.2.

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          QScxmlParser was renamed to QScxmlCompiler in Qt5.8

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          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