-
-
Save humbletim/25b0e41f8ef8f96748c651f07111fff7 to your computer and use it in GitHub Desktop.
"Relocateable" QML mini app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// test.js -- Client Script | |
window = new OverlayWindow({ | |
width: 400, | |
height: 200, | |
title: 'Test', | |
source: Script.resolvePath('test.qml') | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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