Instead of using the static variable, which is initialized before having QApplication. Will allow us to remove the QTimer from Platform init
Removes a lot of asQWidget() code and is also prepared for non-Qt views.
So we can share some code between QtQuick and QtWidgets