Results 1 to 1 of 1

Thread: How to set a viewport with QtWebEngine?

  1. #1
    Join Date
    Jan 2016
    Posts
    3
    Qt products
    Qt5
    Platforms
    Windows

    Default How to set a viewport with QtWebEngine?

    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:

    screenshot.jpg
    Last edited by domusmaximus; 13th January 2016 at 16:59.

Similar Threads

  1. QtWebEngine for 32 bits target application on Mac
    By NIRANJAN BAI in forum Installation and Deployment
    Replies: 1
    Last Post: 14th February 2016, 19:53
  2. QtWebEngine 5.4.2 Raspberry PI 2 not view
    By cleitonbueno in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 16th October 2015, 02:04
  3. [Qtwebengine] Running Chrome Apps in QtWebEngine
    By raunvivek in forum General Discussion
    Replies: 0
    Last Post: 9th July 2015, 14:32
  4. QtWebEngine is extremely slow
    By GimpMaster in forum Qt Programming
    Replies: 7
    Last Post: 19th June 2015, 06:26
  5. Replies: 3
    Last Post: 12th October 2012, 11:44

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.