qt

package module
v0.0.0-...-867eee7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2019 License: LGPL-3.0 Imports: 6 Imported by: 0

README

本模块基于 therecipe/qt 修改, 详细文档请访问原项目


Introduction

Qt is a cross-platform application framework that is used for developing application software that can be run on various software and hardware platforms with little or no change in the underlying codebase.

Go (often referred to as golang) is a programming language created at Google.

This package allows you to write Qt applications entirely in Go and makes deploying them later very easy.

Gallery of example applications making use of this package.

WebAssembly Demo | repo

Status

Almost all Qt functions and classes are accessible from Go and you should be able to find everything you need to build fully featured applications.

(A special exception are the WebEngine/WebView packages, these aren't available for Windows yet.)

Installation

Windows (more info)
go get -u -v github.com/therecipe/qt/cmd/... && for /f %v in ('go env GOPATH') do %v\bin\qtsetup test && %v\bin\qtsetup
macOS (more info)
xcode-select --install; go get -u -v github.com/therecipe/qt/cmd/... && $(go env GOPATH)/bin/qtsetup test && $(go env GOPATH)/bin/qtsetup
Linux (more info)
go get -u -v github.com/therecipe/qt/cmd/... && $(go env GOPATH)/bin/qtsetup test && $(go env GOPATH)/bin/qtsetup

Resources

Deployment Targets

Target Arch Linkage Docker Deployment Host OS
Windows 32 / 64 dynamic / static Yes Any
Linux 64 dynamic / system Yes Any
Android (+Wear) arm dynamic Yes Any
Android-Emulator (+Wear) 32 dynamic Yes Any
Raspberry Pi (1/2/3) arm dynamic / system Yes Any
SailfishOS arm system Yes Any
SailfishOS-Emulator 32 system Yes Any
Ubuntu Touch arm / 64 system Yes Any
JavaScript 32 static Yes Any
WebAssembly 32 static Yes Any
macOS 64 dynamic No macOS
iOS arm64 static No macOS
iOS-Simulator 64 static No macOS
AsteroidOS arm system No Linux

License

This package is released under LGPLv3

Qt is available under multiple licenses

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Global jsValue
View Source
var (
	Logger = log.New(os.Stderr, "", log.Ltime)
)
View Source
var Module jsValue

Functions

func ClearSignals

func ClearSignals()

func ConnectSignal

func ConnectSignal(cPtr interface{}, signal string, function interface{})

func CountSignals

func CountSignals() (c int)

func Debug

func Debug(fn ...interface{})

func DisconnectAllSignals

func DisconnectAllSignals(cPtr unsafe.Pointer, signal string)

func DisconnectSignal

func DisconnectSignal(cPtr interface{}, signal string)

func DumpSignals

func DumpSignals()

func ExistsSignal

func ExistsSignal(cPtr unsafe.Pointer, signal string) (exists bool)

func GetSignal

func GetSignal(cPtr interface{}, signal string) interface{}

func GoBoolToInt

func GoBoolToInt(b bool) int8

func LendSignal

func LendSignal(cPtr unsafe.Pointer, signal string) (s interface{})

func Receive

func Receive(cPtr unsafe.Pointer) (o interface{}, ok bool)

func ReceiveTemp

func ReceiveTemp(cPtr unsafe.Pointer) (o interface{}, ok bool)

func Recover

func Recover(fn string)

func Register

func Register(cPtr unsafe.Pointer, gPtr interface{})

func RegisterTemp

func RegisterTemp(cPtr unsafe.Pointer, gPtr interface{})

func Unregister

func Unregister(cPtr unsafe.Pointer)

func UnregisterTemp

func UnregisterTemp(cPtr unsafe.Pointer)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL