diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-03-16 16:19:49 +0100 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-03-16 16:19:49 +0100 |
| commit | fa095de6cc8ec5a5b5c14091f2b3179ad7071876 (patch) | |
| tree | aa094011263a83a4c91eb8722c2095344656c838 /demo/DebugConsole.qml | |
| parent | 7830f0ae98d742467b948ed93c85e122be38fb83 (diff) | |
| download | QtXpl2-fa095de6cc8ec5a5b5c14091f2b3179ad7071876.tar.gz QtXpl2-fa095de6cc8ec5a5b5c14091f2b3179ad7071876.zip | |
EV_ events with Q_GADGET status types, mock periodic emission, tabbed demo UI
Diffstat (limited to 'demo/DebugConsole.qml')
| -rw-r--r-- | demo/DebugConsole.qml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/demo/DebugConsole.qml b/demo/DebugConsole.qml new file mode 100644 index 0000000..9a5a9ff --- /dev/null +++ b/demo/DebugConsole.qml @@ -0,0 +1,34 @@ +pragma ComponentBehavior: Bound + +import QtQuick +import QtQuick.Controls + +Rectangle { + id: debugRoot + + function appendLog(msg: string): void { + let ts = new Date().toLocaleTimeString(Qt.locale(), "HH:mm:ss.zzz"); + debugLog.text += "[" + ts + "] " + msg + "\n"; + debugLog.cursorPosition = debugLog.text.length; + } + + border.color: "#444" + color: "#1e1e1e" + radius: 4 + + ScrollView { + anchors.fill: parent + anchors.margins: 4 + + TextArea { + id: debugLog + + background: null + color: "#cccccc" + font.family: "monospace" + font.pointSize: 9 + readOnly: true + wrapMode: TextEdit.Wrap + } + } +} |
