Not needed as one can just do: import QtQuick.Window; This fixes a build problem with Qt 5.4. BUG: 338277