Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qml how Open new Window capture Barcode
Qt 6.11 is out! See what's new in the release blog

Qml how Open new Window capture Barcode

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 599 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Nio74N Offline
    Nio74N Offline
    Nio74
    wrote on last edited by Nio74
    #1

    Hi.

    I have a Window:

    0_1557682836272_Cattura.JPG

    open a new window where I will do the barcode capture logic (I have it ready) but I don't know how to do to:

    1. open a new window
    2. send the data back to the root window

    Do you have any examples? also trivial

    Thank you all

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      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...
      }
      

      (Z(:^

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved