Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nokka/goqmlframeless
Frameless Go QT window using QML.
https://github.com/nokka/goqmlframeless
go qml qt
Last synced: about 2 months ago
JSON representation
Frameless Go QT window using QML.
- Host: GitHub
- URL: https://github.com/nokka/goqmlframeless
- Owner: nokka
- License: mit
- Created: 2019-07-12T07:29:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-27T17:42:30.000Z (over 4 years ago)
- Last Synced: 2024-11-15T13:55:54.158Z (about 2 months ago)
- Topics: go, qml, qt
- Language: Go
- Homepage:
- Size: 44.9 KB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# goqmlframeless
[![Go Report Card](https://goreportcard.com/badge/github.com/nokka/goqmlframeless)](https://goreportcard.com/report/github.com/nokka/goqmlframeless)
[![GoDoc](https://godoc.org/github.com/nokka/goqmlframeless?status.svg)](https://godoc.org/github.com/nokka/goqmlframeless)![Example window](docs/example.png)
This package contains a minimalistic QT frameless window using QML for drawing the application. The window disables Windows features such as aerosnap.
### Build the example locally
```sh
$ qtdeploy build
```### Build the example on windows
```sh
$ qtdeploy -docker build windows_64_shared
```### Options
Options can be set for the window when creating it.#### Options available
| Key | Type |
|--------------|----------------------------------------------------------------------|
| Width | `int` |
| Height | `int` |
| Alpha | `float64` |
| Color | [RGB](https://github.com/nokka/goqmlframeless/blob/master/rgb.go#L8) |
| BorderRadius | `int` |
| BorderColor | *[RGB](https://github.com/nokka/goqmlframeless/blob/master/rgb.go#L8) |
| ShadowSize | `int` |#### Example
```go
fw := goqmlframeless.NewWindow(goqmlframeless.Options{
Width: 1024,
Height: 600,
Alpha: 1.0,
Color: goqmlframeless.RGB{R: 0, G: 0, B: 0},
BorderColor: &goqmlframeless.RGB{R: 198, G: 154, B: 31},
ShadowSize: 0,
})
```#### Original author
This package is a modification and adaption of [akiyosi/goqtframelesswindow](https://github.com/akiyosi/goqtframelesswindow), full credit goes to him and his efforts. The reason this package was created was to simplify things and make it more minimalistic. While also using QML to render the application.