I am unable to identify how QML lets you use absolute paths when importing Component
s and JavaScript files.
As far as I can understand, the only way to import is to either use relative paths or import Component
s as a module.
But since I cannot make JavaScript functions as modules (or can I?), I can only do relative paths.
So my headers in most of my components are filled with code like this:
import QtQuick 2.5
import QtQuick.Layouts 1.2
import MyCompany.Gui 1.0
import "markets"
import "../../../../../../javascript/markets/MarketHelper.js" as MarketHelper
How am I able to let JavaScript be imported as nicely as QML modules?