Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Use autofill suggestions from website
Forum Updated to NodeBB v4.3 + New Features

Use autofill suggestions from website

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 484 Views
  • 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.
  • S Offline
    S Offline
    Stephan Lorenzen
    wrote on last edited by
    #1

    I want to write a GUI that uses the autocompletion of a website (here: de.finance.yahoo.com). As a result, I want a text field in my GUI where the user inputs a hint (e.g. "Ama"), and the webpage working invisibly in the background, extracting the autocompletion suggestions (e.g. "AMZN Amazon.com, Inc.") and suggesting them to the user in the GUI. In other words, i want to "steal" the autocompletion features of the website without the website being visible to the user. How can I extract the autocompletion suggestions from a QNetworkReply?

    I wrote downloadFinished(QNetworkReply *reply) but I am not able to access the autocompletion suggestions.

    JonBJ 1 Reply Last reply
    1
    • S Stephan Lorenzen

      I want to write a GUI that uses the autocompletion of a website (here: de.finance.yahoo.com). As a result, I want a text field in my GUI where the user inputs a hint (e.g. "Ama"), and the webpage working invisibly in the background, extracting the autocompletion suggestions (e.g. "AMZN Amazon.com, Inc.") and suggesting them to the user in the GUI. In other words, i want to "steal" the autocompletion features of the website without the website being visible to the user. How can I extract the autocompletion suggestions from a QNetworkReply?

      I wrote downloadFinished(QNetworkReply *reply) but I am not able to access the autocompletion suggestions.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @Stephan-Lorenzen
      While you await a better/more specific reply.

      Obviously once you have the suggestions etc. from a site you can use a QCompleter in a Qt widgets application to present an interface,

      For how you get the suggestions, Google for something like fetch autocompletion suggestions from website. Maybe https://simplestepscode.com/autocomplete-data-tutorial/ or https://stackoverflow.com/questions/71188272/autocomplete-and-fetch are useful? Looks like you need to exchange some JSON with the web site. I think you have to investigate how each individual site works.

      S 1 Reply Last reply
      2
      • JonBJ JonB

        @Stephan-Lorenzen
        While you await a better/more specific reply.

        Obviously once you have the suggestions etc. from a site you can use a QCompleter in a Qt widgets application to present an interface,

        For how you get the suggestions, Google for something like fetch autocompletion suggestions from website. Maybe https://simplestepscode.com/autocomplete-data-tutorial/ or https://stackoverflow.com/questions/71188272/autocomplete-and-fetch are useful? Looks like you need to exchange some JSON with the web site. I think you have to investigate how each individual site works.

        S Offline
        S Offline
        Stephan Lorenzen
        wrote on last edited by
        #3

        @JonB You are great!! Thanks so much, that solved the issue.

        1 Reply Last reply
        0
        • SGaistS SGaist has marked this topic as solved on
        • SGaistS SGaist referenced this topic on

        • Login

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