I'm trying to use QML's built-in FontLoader element to load a custom font for our application without success.
I've tried using both OTF and TTF fonts with identical results.
The fonts are in the same directory as the project files. There is only one QML, the main one where this FontLoader lives.
This is what it should look like:

Here is my code:
import QtQuick 2.0
Rectangle {
width: 360
height: 360
FontLoader {
id: cFontLoader
source: "./fontlol.ttf"
}
Text {
id: testText
anchors.centerIn: parent
text: "Hello Fonts!"
font.family: cFontLoader.name
font.pointSize: 32
}
}