The attached patch fixes the invalid cast from QEvent to QModelIndex (for details see my "Qyoto: Help needed" post) by disabling the Qyoto object cache in a specific case. For now I haven't found the exact problem with the cache but it is a show-stopper therefore the hack.