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

Extend the JS console object. How?



  • Hello all!
    We have an "console" object in QML:

    console.log(...);
    

    In this object we have method "debug", "error" and etc. Is there any way to extend this "console" object and write some additional methods for it. Something like this:

    console.customMethod1(...);
    console.customMethod2(...);
    console.customMethod3(...);
    

Log in to reply