Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Can I set custom client screen size independently from WebEngineView size?



  • I want to render website as if on big screen and then only show part of it (using JS to scroll).

    My use case is:

    • set webpage size to X
    • set WebEngineView size to Y. Where Y < X
    • Only Y would be shown in Window, but website would think it's on screen with size X
    • I would call JS scrollTo() to get to desired region of website

    Thanks for any advice.


Log in to reply