Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How are these method of XYSeries QML Type exported to qml without Q_INVOKABLE macro in the class QXYSeries?
Forum Update on Monday, May 27th 2025

How are these method of XYSeries QML Type exported to qml without Q_INVOKABLE macro in the class QXYSeries?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
qmlc++ to qmlqmlregistertypeqml register
4 Posts 2 Posters 474 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.
  • Crawl.WC Offline
    Crawl.WC Offline
    Crawl.W
    wrote on last edited by Crawl.W
    #1

    I have viewed chartsqml2_plugin.cpp and qxyseries.h before, but I could not find Q_INVOKABLE macro before function declaration. Is there any way to export the function from c++ to qml?

    1 Reply Last reply
    0
    • IntruderExcluderI Offline
      IntruderExcluderI Offline
      IntruderExcluder
      wrote on last edited by
      #2

      There can be a quick wrapper around this class. Also every slot can be invoked from QML like it is marked as invokable.

      1 Reply Last reply
      0
      • Crawl.WC Offline
        Crawl.WC Offline
        Crawl.W
        wrote on last edited by Crawl.W
        #3

        Can you use XYSeries for example? I couldn't find a quick wrapper.
        And will the quick wrapper export all public method of c++ class? However, there are no conversion for some type.

        1 Reply Last reply
        0
        • Crawl.WC Offline
          Crawl.WC Offline
          Crawl.W
          wrote on last edited by Crawl.W
          #4

          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.

          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