https://qt5.jp/2013/01/qmlregistertype/
qmlRegisterType() の引数に変数を使うときの注意点