Merge "Add comments in grouping APIs to clarify possible exceptions." into qt-dev