class MainWindow : public QMainWindow
explicit MainWindow(QWidget *parent = 0) :
QWidget *dock = new QWidget(this);
QQuickWidget *quick = new QQuickWidget(dock);
int main(int argc, char *argv)
QApplication a(argc, argv);
import QtQuick 2.0
Clicking on the green rectangle should trigger "clicked" console messages but doesn't. When the "dock->move(512, 512);" line is removed the green rectangle is in the top left of the window and clicking on it triggers the messages.
This is because https://codereview.qt-project.org/#/c/213030/ changed the coordinates of mouse events sent to QQuickWidget. Previously localPos was also assumed as windowPos, now the original windowPos of the event is passed, which doesn't fit the offscreen Quick Window.