Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions

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