QSettings settings("MyCompany", "MyApp"); settings.beginGroup("Window"); settings.setValue("Size", QSize(800, 600)); settings.setValue("Position", QPoint(100, 100)); settings.endGroup(); // end "Window" groupIn this example, a group of settings called "Window" is started using beginGroup(). Two settings, "Size" and "Position", are then added to this group. Finally, endGroup() is called to close the "Window" group. Package library: Qt 5 Core module.