Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. qmlregistertype
    Log in to post
    • All categories
    • T

      Unsolved QML Module not found | QML_ELEMENT | Working with separate sub-projects
      QML and Qt Quick • qmlregistertype c++ to qml subdirectories subproject • • Tee_

      4
      0
      Votes
      4
      Posts
      259
      Views

      raven-worx

      @Tee_
      normally a pro file results in a separate target (executable or library). Even if you "combine" them with a subdirs project.
      So your AppUi project must link against the AppLib

    • A

      Solved Alternative method for qmlRegisterSingletonInstance method in qt 5.12.9.
      QML and Qt Quick • qmlregistertype 5.12.9 5.15.0 backward compat • • Ashvit

      2
      0
      Votes
      2
      Posts
      349
      Views

      A

      For someone facing a similar issue, I did not find a direct solution,

      According to the table
      https://doc.qt.io/qt-5/qtqml-cppintegration-data.html#sequence-type-to-javascript-array
      QList<CustomClass> is not yet supported in QML. Due to this reason I had to convert the QList<QList<CustomClass>> to QVariantMap<string,QVariantList<QVariantList<QVariantMap>>>

      And while using the values in qml use the bracket notation instead of the dot notation.

    • M

      Unsolved QRegisterType parsed by QtCreator: create .qmltype file?
      QML and Qt Quick • qml qmltypes qtcreator qqmlengine qmlregistertype • • Marr11317

      1
      0
      Votes
      1
      Posts
      172
      Views

      No one has replied

    • Crawl.W

      Solved How are these method of XYSeries QML Type exported to qml without Q_INVOKABLE macro in the class QXYSeries?
      QML and Qt Quick • qml c++ to qml qmlregistertype qml register • • Crawl.W

      4
      0
      Votes
      4
      Posts
      191
      Views

      Crawl.W

      I just noticed that XYSeries is a uncreatable type, its derived object's Q_INVOKABLE method invoke member method of DeclarativeXySeries class, and DeclarativeXySeries is a shadow class about XYSeries. Such as LineSeries is imported from DeclarativeLineSeries.

    • T

      Unsolved undefined reference to name::staticMetaObject when registering with qmlRegisterType
      General and Desktop • qml qmlregistertype • • TTIO

      10
      0
      Votes
      10
      Posts
      6781
      Views

      W

      @TTIO Did you ever fix this? I am having the exact same problem and am thoroughly stumped.

    • A

      Solved QML type error.
      QML and Qt Quick • qmlregistertype • • Ankit.Jain

      2
      0
      Votes
      2
      Posts
      1554
      Views

      raven-worx

      @Ankit.Jain
      such errors appear when you try to access c.listOfA too early before it has a proper value assigned

    • A

      Solved QtQml qmlRegisterType via .qml file problems
      QML and Qt Quick • qt5 qtqml qml qmlregistertype • • aa13q

      3
      0
      Votes
      3
      Posts
      1587
      Views

      A

      Sorry, everything is ok now. It's not about the typo in the forum, but in my project.
      Tried to build minimal working example -- working without any problems.