Implement the sizeHint method of CanvasBacjkend in Qt

This simply make the widget returns its size as a size hint.