Apparently you can only pass QObject pointers to QML.. FML