mirror of
https://github.com/mappu/miqt.git
synced 2024-12-21 16:38:38 +00:00
examples/uidesigner: add README and screenshots
This commit is contained in:
parent
16435f1565
commit
6ebe54adbd
25
examples/uidesigner/README.md
Normal file
25
examples/uidesigner/README.md
Normal file
@ -0,0 +1,25 @@
|
||||
# miqt/examples/uidesigner
|
||||
|
||||
This example shows how to use [Qt Designer](https://doc.qt.io/qt-5/qtdesigner-manual.html) and miqt-uic to design a UI.
|
||||
|
||||
## 1. Design
|
||||
|
||||
Use Qt Designer to build the UI and save as a `.ui` XML file.
|
||||
|
||||
![](uidesigner.png)
|
||||
|
||||
## 2. Compile
|
||||
|
||||
Compile the `.ui` XML to Go code with the `miqt-uic` tool.
|
||||
|
||||
```bash
|
||||
miqt-uic -InFile design.ui -OutFile design.go
|
||||
```
|
||||
|
||||
Some advanced configuration for `miqt-uic` can be done with other command-line arguments. Run `miqt-uic -Help` for more information.
|
||||
|
||||
## 3. Use
|
||||
|
||||
Use the generated types.
|
||||
|
||||
![](uidesigner.miqt.png)
|
BIN
examples/uidesigner/uidesigner.miqt.png
Normal file
BIN
examples/uidesigner/uidesigner.miqt.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
BIN
examples/uidesigner/uidesigner.png
Normal file
BIN
examples/uidesigner/uidesigner.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 171 KiB |
Loading…
Reference in New Issue
Block a user