Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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



  • 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!


Log in to reply