No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    How to hide the the app view when using a QR reader plugin?

    Help
    2
    2
    235
    Loading More Posts
    • 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.
    • T
      Technical last edited by

      I’m using the cordova-plugin-qrscanner (https://github.com/bitpay/cordova-plugin-qrscanner) in my Quasar application.

      When a button is clicked, the following code is executed:

      QRScanner.show();
      QRScanner.scan(this.displayContents);
      

      As the plugin description says about the show() method:

      Configures the native webview to have a transparent background, then sets the background of the <body> and <html> DOM elements to transparent, allowing the webview to re-render with the transparent background.
      

      The problem is, while I get transparent background, all my list items and q-toolbar are still visible above the camera preview.

      I want only the camera preview and a FAB that closes the preview to be visible. How do I achieve this?

      dobbel 1 Reply Last reply Reply Quote 0
      • dobbel
        dobbel @Technical last edited by

        @Technical

        You could hide every component that causes problems with a v-if or v-show.

        You could navigate to a new page without all these components you don’t want to see.

        Did you see this one:
        https://github.com/patrickmonteiro/quasar-qrcode-reader

        1 Reply Last reply Reply Quote 0
        • First post
          Last post