Is there any reason why the function sizeHint() should return a invalid QSize?

My code is
Qt Code:
  1. QTableWidgetItem *header = new QTableWidgetItem("Hello\nWorld");
  2. QSize size = header->sizeHint();
To copy to clipboard, switch view to plain text mode