qt

package module
v0.0.0-...-14a880b Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2017 License: LGPL-3.0 Imports: 6 Imported by: 0

README

Introduction

therecipe/qt is Go binding for Qt application framework which allows you to write GUI applications entirely in Go. This package supports almost all platform that supported by Qt, including Windows, Linux, macOS, iOS, Android, SailfishOS and Raspberry Pi.

The main target of this binding are :

  1. easing the development of GUI application by making Qt's API accessible from Go; and
  2. simplifying the development and deployment processes to multiple platforms.

Even though this binding is still work in progress, it's quite stable and most of Qt's API is already accessible from this binding, so it should already contain everything you need to build a fully featured applications. If you still missing something, feel free to open an issue.

Do note that there are no godoc entry for this package, because most of binding code is generated by generator. However, when building Qt app you can use official Qt documentation because almost every Qt's API is mapped by this binding to same or predictable name in Go.

Deployment Targets

The following targets are currently supported for deployment :

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

Resources

  • Gallery, which contains example of GUI applications that created using this binding.
  • Frequently asked questions, especially the licensing section, because LGPLv3 license that used in this binding might be not suitable for your projects.
  • Installation, which shows you how to install this binding on Windows, Linux and macOS.
  • Getting started, which shows you a simple Hello World example using widgets and QML.

Community

Like any other GitHub projects, you can ask your question by creating new issue. You can also join #qt-binding Slack channel by inviting yourself here.

Besides the official examples, you can also check these 3rd party examples from the community :

Feel free to add your project here!

License

This binding is released under LGPLv3 license, while Qt is available under multiple licenses.

Documentation

Index

Constants

This section is empty.

Variables

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

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) int

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.

Directories

Path Synopsis
cmd
internal
cmd
examples/grpc/hello_world
Package helloworld is a generated protocol buffer package.
Package helloworld is a generated protocol buffer package.
examples/grpc/hello_world2
Package helloworld is a generated protocol buffer package.
Package helloworld is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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