2025-11-17 19:26:35 +13:00
2025-11-17 19:18:35 +13:00
2025-11-15 14:53:35 +13:00
2025-11-15 14:51:57 +13:00
2025-11-15 14:51:57 +13:00
2025-11-17 19:26:35 +13:00
2025-11-17 19:18:35 +13:00
2025-11-17 19:18:35 +13:00
2025-11-17 19:18:35 +13:00
2025-11-17 19:18:35 +13:00
2025-11-17 19:18:35 +13:00
2025-11-17 19:18:35 +13:00
2025-11-17 19:18:35 +13:00
2025-11-17 19:18:35 +13:00

autoconfig

Go Reference

Autoconfig allows you to edit any Go struct with a Qt interface based on MIQT.

struct Foo {                     []----------------------[]
    Name string                  |  Name:  [___________]  |
}                                |                [Save]  |
                                 []----------------------[]

Supported types

  • string, bool, *struct
  • Any custom types (many types included in package)

Customization

Struct tags:

  • ylabel - Override label. If not present, the default label is the struct field's name with underscores replaced by spaces.
  • yfilter - For "ExistingFile"; filter to apply in popup dialog
  • yenum - For "EnumList"; list of dropdown options, separated by double-semicolon (;;)

Interfaces:

  • InitDefaulter - May be used if autoconfig needs to construct a new version of your type
  • Autoconfiger - Add a fully custom Qt widget
  • fmt.Stringer - May be used to format some types for display

Notes

  • Passed in struct should be a pointer value
  • Call the saver, but, warning that some fields may be mutated automatically without calling
  • Public fields only
Description
Edit any Go struct with a Qt interface
Readme 137 KiB
Languages
Go 100%