https://github.com/gofaith/faithtop
Cross-Platform Desktop GUI framework for Go
https://github.com/gofaith/faithtop
golang gtk2 qt walk
Last synced: about 1 year ago
JSON representation
Cross-Platform Desktop GUI framework for Go
- Host: GitHub
- URL: https://github.com/gofaith/faithtop
- Owner: gofaith
- Created: 2018-10-12T01:52:21.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-10-25T06:41:12.000Z (over 4 years ago)
- Last Synced: 2025-02-26T17:41:07.988Z (over 1 year ago)
- Topics: golang, gtk2, qt, walk
- Language: Go
- Homepage:
- Size: 5.33 MB
- Stars: 16
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Faithtop
Faithtop是一个基于[Qt](https://github.com/therecipe/qt)的Go语言的桌面GUI框架, 用于快速编写桌面应用

## [查看文档](https://github.com/gofaith/faithtop/wiki)
---
## 快速开始
1.安装[github.com/therecipe/qt](https://github.com/therecipe/qt)
2.安装`faithtop`
```shell
GO111MODULE=off go get github.com/gofaith/faithtop
```
3.新建`main.go`文件
```go
package main
import (
. "github.com/gofaith/faithtop"
)
func main() {
app := NewApp()
var label ILabel
var edit IEdit
Window().DeferShow().CenterWidget(VBox(
Label2("This is a text label").Assign(&label),
Edit().Assign(&edit),
Button2("show").OnClick(func() {
label.Text(edit.GetText())
}),
))
app.Run()
}
```
4.运行
```shell
qtdeploy -tags=impl build desktop
```

## 更多
[开发文档](https://github.com/gofaith/faithtop/wiki)
## 使用Faithdroid开发的App
[局域网精灵专业版](https://lan-genius.com)