2024-09-28 14:52:13 +12:00
|
|
|
# miqt-uic
|
|
|
|
|
|
|
|
The miqt-uic program compiles Qt Designer `.ui` files into MIQT `.go` files.
|
|
|
|
|
2025-02-07 18:01:45 +13:00
|
|
|
## Usage
|
|
|
|
|
|
|
|
For example usage information, see the `examples/uidesigner` folder.
|
|
|
|
|
|
|
|
```
|
|
|
|
Usage of ./miqt-uic:
|
|
|
|
-InFile string
|
|
|
|
Input .ui file
|
|
|
|
-OutFile string
|
|
|
|
Output .go file, or - for stdout (default "-")
|
|
|
|
-Package string
|
|
|
|
Custom package name (default "main")
|
|
|
|
-Qt6
|
|
|
|
Use Qt 6 instead of Qt 5
|
|
|
|
```
|
2024-09-28 14:52:13 +12:00
|
|
|
|
|
|
|
## Architecture design
|
|
|
|
|
|
|
|
1. Parse xml type definitions
|
|
|
|
2. Recursively walk and emit Go code.
|
|
|
|
|
|
|
|
When developing `miqt-uic`, it's useful to run Qt `uic` side-by-side, and compare the output of each program for missing attributes or assignments.
|