Example #1
0
func (w *MainWindow) readSettings() {
	setting := ui.NewSettingsWithOrganizationApplicationParent("GoQt", "Application Example", w)
	defer setting.Delete()
	pos := setting.ValueWithKeyDefaultvalue("pos", ui.NewVariantWithPoint(ui.NewPointWithXposYpos(200, 200))).ToPoint()
	size := setting.ValueWithKeyDefaultvalue("size", ui.NewVariantWithSize(ui.NewSizeWithWidthHeight(400, 400))).ToSize()
	w.Move(pos)
	w.Resize(size)
}
Example #2
0
func (w *MainWindow) writeSettings() {
	setting := ui.NewSettingsWithOrganizationApplicationParent("GoQt", "Application Example", nil)
	setting.SetValue("pos", ui.NewVariantWithPoint(w.Pos()))
	setting.SetValue("size", ui.NewVariantWithSize(w.Size()))
}