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

How to access javascript function in c++



  • Hello Guys,

    I have a small query , i had some functions defined in JavaScript file Ex: myScript.js ,
    and want to access this function in my c++ class when the signal is emitted.
    i tried couple of things but nothing worked well.
    Could someone help me to solve this.

    Thanks,
    Srini

    myScript.js

    function method1()
    {
    }

    function method2()
    {
    }


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    What exactly did you try ?


Log in to reply