Remove unused variable.
Call qFatal() properly.
Include all QML resources.