fix QCanvas