Qt 6.11 is out! See what's new in the release
blog
Qml how Open new Window capture Barcode
-
This might work (brain-to-terminal, completely untested):
ApplicationWindow { BarcodeWindow { id: barcodeWindow onBarcodeScanned: { console.log("Scanned: " + blah) } } Button { onClicked: barcodeWindow.visible = !barcodeWindow.visible } }// BarcodeWindow.qml Window { signal barcodeScanned(string blah) visible: false // ...your barcode scannning code... }