void Panto::start () { if (isProbablyPhone) { showFullScreen (); } setSource (QUrl("qrc:/qml/main.qml")); if (sizeSet) { resize (desiredSize); } show (); QDeclarativeItem * root = qobject_cast <QDeclarativeItem*> (rootObject()); qDebug () << PANTO_PRETTY_FUNCTION << " root " << root; if (root) { #if 0 QDeclarativeItem * mouseArea = root->findChild<QDeclarativeItem*> ("GestureTrap"); if (mouseArea) { mouseArea->grabGesture (loopType); mouseArea->installEventFilter (this); } QDeclarativeItem * bigButton = root->findChild<QDeclarativeItem*> ("BigButton"); if (bigButton) { bigButton->grabGesture (loopType); bigButton->installEventFilter (this); } #endif } //QTimer::singleShot (10*1000, this, SLOT(allDone())); }