We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
核心
基础组件
布局
容器
其他
package main import ( . "github.com/gofaith/faithtop" ) func main() { app := NewApp() var label ILabel var edit IEdit Window().DeferShow().CenterWidget(VBox( TabWidget( TabPage{ Name: "Tab 1", Content: Widget().Layout(VBoxLayout().Align(AlignHCenter).AppendWidgets( LabelImage(":/qml/folder.svg", 50, 50), Label2("This is a text label").Assign(&label), Edit().Assign(&edit), HBox( RadioButton2("one"), RadioButton2("two"), ComboBox().Data([]string{"Bob", "Steven"}), ), CheckBox().Text("checkbox"), Button2("show").OnClick(func() { label.Text(edit.GetText()) }), Progress().Max(100).Value(24).Text("progress"), )), }, TabPage{ Name: "Tab 2", Content: Label2("Tab 2"), }, TabPage{ Name: "Tab 3", Content: Label2("Tab 3"), }, ), )) app.Run() }