Skip to content

Instantly share code, notes, and snippets.

Demonstration of QML with Qt5 + qmake + nix

If you have nix installed compile and run with:

$ nix build
$ ./result/bin/demo 

Explaination: we load the .qml file with qrc:///main.qml: it uses for that the file qml.qrc (the name is not important) that lists the resource files. This 'qml.qrc file is then given to RESOURCES in demo.pro in order to compile the resources and include them in the final binary.

@terickson001
terickson001 / main.odin
Last active February 28, 2025 12:31
vulkan-tutorial example in Odin
import "shared:shaderc"
import "vendor:glfw"
import vk "vendor:vulkan"
MAX_FRAMES_IN_FLIGHT :: 2
Context :: struct
{
instance: vk.Instance,