Change the docstrings and add QSize input supporting