When a QQuickWidget is added via Qt creator Designer and then build it gives error:
No rule to make target QtQuickWidgets/QQuickWidget', needed by ui_mainwindow.h'. Stop.
If QQuickWidget is removed and project is build it works fine.
if QQuickWidget is added again and then qmake is run and project is build it works normally.