PDA

View Full Version : Detecting if a webpage is displayed as QWebEngineView



Rin_asdfghjkl
2nd February 2019, 06:05
I am trying to use a qwebengineview to be able to display a certain webpage on my application. I add some javascript codes on web source. But I don't want the code to run when the webpage is displayed on a browser as it is designated only for app using qwebengineview. How do I fix this?

Lesiok
2nd February 2019, 11:25
JavaScript has a standard object called navigator that contains data about the browser being used.