Replaced this pointer with the Canvas id and changed the import to QtQuick 2.0, to make it work on Qt 5.0.