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

Make JS-object available in any file without import. How?



  • Hello all!

    I have object in JavaScript file. I want to make it available in any QML file without direct manual import in it.
    Is there any way to do it?

    For example:

    I am extending "console" object in "extend_console.js" and I want to make it available in any QML files without

    import "extend_console.js" as Console;
    

Log in to reply