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 to draw axis at C++ side, render in QML?

How to draw axis at C++ side, render in QML?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qmlqtquick
1 Posts 1 Posters 192 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.
  • Q Offline
    Q Offline
    QTLeearn
    wrote on last edited by QTLeearn
    #1

    Hi,
    In my codes there's a C++ class myClass which inherits from QQuickItem class, I register myClass as qml type and render in QML:

    qmlRegisterType<myClass>("myClass", 1, 0, "myClass");
    
    import myClass1.0
    myClass{
    id: myClassId
    }
    

    I have used the QSG node in myClass to draw some real time curves, and now I would like to add axis for those curves. Is it possible to add axis at C++ side, and to render at QML side?

    Thank you in adavnce!

    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