Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. openurlexternally with ?query

openurlexternally with ?query

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 2 Posters 814 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.
  • E Offline
    E Offline
    echo55
    wrote on last edited by
    #1

    Hi, i cant use ?query when i call Qt.openurlexternally

    i'm opening a local file and then i want to apply ?query=blabla to it.

        var u = ("file://" + applicationDirPath + "/stripe-payment-js/index.html")
        var arg = "?amount=" + parseInt(Constants.cur_bundle.price)
    Qt.openUrlExternally(u + arg)
    

    How can i do it please.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Why are you trying to pass a query string while trying to open a local file ?

      It looks like you want to access a web site.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • E Offline
        E Offline
        echo55
        wrote on last edited by
        #3

        it is . it's a self hosted little js file .

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          And what are you expecting from it ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • E Offline
            E Offline
            echo55
            wrote on last edited by
            #5

            it's an index.html
            i want to open it on the default browser and give it some queries like

            /path/to/file/index.html?qwe=qwe&qwe=123
            etc

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Since you are opening a local file, it most likely just drop the query string part as it doesn't make any sense from a local filesystem point of view.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              • Login

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