Skip to content

Instantly share code, notes, and snippets.

@humbletim
Last active August 2, 2016 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save humbletim/25b0e41f8ef8f96748c651f07111fff7 to your computer and use it in GitHub Desktop.
Save humbletim/25b0e41f8ef8f96748c651f07111fff7 to your computer and use it in GitHub Desktop.
"Relocateable" QML mini app
// test.js -- Client Script
window = new OverlayWindow({
width: 400,
height: 200,
title: 'Test',
source: Script.resolvePath('test.qml')
});
// test.qml -- QML "dialog"
import QtQuick 2.0
Image {
source: 'avatar.png' // note: this URI is automatically resolved relative to the .qml file
anchors.fill: parent
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment