Make the plugin correctly handle the case when the QQuickView is destroyed and a new one is created: this is done by avoiding using static variables, and instead binding the data to the QQmlEngine, QQmlContext or QWindow as appropriate. . Fixes: https://bugs.launchpad.net/bugs/1221707.