Apparently this is possible, and Qt Creator complains about returning the rect the old-fashioned way...