Use autofill suggestions from website
-
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. -
@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. -
-