Skip to content

nokka/goqmlframeless

Repository files navigation

goqmlframeless

Go Report Card GoDoc

Example window

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

$ qtdeploy build

Build the example on windows

$ 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
BorderRadius int
BorderColor *RGB
ShadowSize int

Example

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, 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.