PDA

View Full Version : How to set a viewport with QtWebEngine?



domusmaximus
13th January 2016, 16:42
I have created a application with a QWebEngineView widget with a width of 500px. However when viewing websites like google.com the website is not recognizing the fact that it is a small windows and still displaying the full site.

Because of this you can only see the top corner of the webpage. I am assuming this is because QWebEngineView is not setting a viewport.

However this used to be possible in QWebKit, is there any work around for QWebEngine?

An example of this is shown below:

11642