Switch from using the (deprecated) <Size> tag to <MinimumSize>, <MaximumSize>, and <SizePolicy>.