@@ -91,6 +91,7 @@
9191
9292#include "listviewwithpageheader.h"
9393
94+#include <QCoreApplication>
9495#include <QDebug>
9596#include <qqmlinfo.h>
9697#include <qqmlengine.h>
@@ -1279,7 +1280,7 @@ void ListViewWithPageHeader::updatePolish()
12791280 // We need to make sure all bindings have updated otherwise
12801281 // we may end up with bindings updating when we call setContentHeight
12811282 // and then everything gets out of sync, i.e. testHeaderPositionBug1240118
1282− qApp->processEvents();
1283+ QCoreApplication::instance()->processEvents();
12831284
12841285 qreal contentHeight;
12851286 if (m_visibleItems.isEmpty()) {