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. QtScriptedStateMachine and qt5
Qt 6.11 is out! See what's new in the release blog

QtScriptedStateMachine and qt5

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 2.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.
  • G Offline
    G Offline
    grastvei
    wrote on last edited by
    #1

    I have a problem to compile the following for qt5
    "https://qt.gitorious.org/qt-labs/scxml/source/master:":https://qt.gitorious.org/qt-labs/scxml/source/master:

    I get the following error:
    @C:\Develop\OpenView3D\3rdparty\qt5\qtstatemachine\src\qstatemachine.cpp:1879: error: cannot convert 'const char*' to 'const QByteArrayData* {aka const QArrayData*}' in initialization
    };
    ^
    @

    And this is the lines in the source where the error is. (line 1879 is here line 6)
    @
    static const char qt_meta_stringdata_QtSignalEventGenerator[] = {
    "QtSignalEventGenerator\0\0execute()\0"
    };

    const QMetaObject QtSignalEventGenerator::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_QtSignalEventGenerator,
    qt_meta_data_QtSignalEventGenerator, 0 }
    };
    @

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Last update to that repository was almost 2 years ago...

      I think something like this might help you:
      @
      const QByteArrayData *data = qt_meta_stringdata_QtSignalEventGenerator;
      const QMetaObject QtSignalEventGenerator::staticMetaObject = {
      { &QObject::staticMetaObject, data,
      qt_meta_data_QtSignalEventGenerator, 0 }
      @

      (Z(:^

      1 Reply Last reply
      0
      • G Offline
        G Offline
        grastvei
        wrote on last edited by
        #3

        Thanks that worked. I had to do like this, though.
        @
        const QByteArrayData data = (QByteArrayData) qt_meta_stringdata_QtSignalEventGenerator;
        @

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Yep, have not checked it with a compiler ;) I'm glad this helped you. Have fun!

          (Z(:^

          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