Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. Problem using QWebEngine on virtual machine
Forum Updated to NodeBB v4.3 + New Features

Problem using QWebEngine on virtual machine

Scheduled Pinned Locked Moved Solved QtWebEngine
windows10msvc2015qwebengine
2 Posts 1 Posters 1.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pmh4514
    wrote on 20 Mar 2017, 16:10 last edited by A Former User
    #1

    Hello,

    I've installed MSVC2015 64bit on a new 64bit Win10 Virtual Machine, along with Qt 5.8

    I compiled and ran the built in WebEngine Demo Browser example.

    Any URL I load in this project simply doesn't render properly. Even a simple page like www.google.com, it seems the CSS and javascript mouse interactions are all corrupted and nothing is displayed properly.

    I then used WinDeployQt to package the demo. I ran it on my Win10 VM (outside of Qt Creator environment) and still, no web-pages would render or perform properly.

    If I then take that same deployed build to a non-virtual Win10 machine, it seems to work properly.

    Is there some issue with running QtWebEngine inside a Win10 virtual machine? If so, is there a workaround? I do all my development on virtual machines, and this issue is making it impossible to do so.

    Thanks for any insights

    P 1 Reply Last reply 21 Mar 2017, 17:59
    0
    • P pmh4514
      20 Mar 2017, 16:10

      Hello,

      I've installed MSVC2015 64bit on a new 64bit Win10 Virtual Machine, along with Qt 5.8

      I compiled and ran the built in WebEngine Demo Browser example.

      Any URL I load in this project simply doesn't render properly. Even a simple page like www.google.com, it seems the CSS and javascript mouse interactions are all corrupted and nothing is displayed properly.

      I then used WinDeployQt to package the demo. I ran it on my Win10 VM (outside of Qt Creator environment) and still, no web-pages would render or perform properly.

      If I then take that same deployed build to a non-virtual Win10 machine, it seems to work properly.

      Is there some issue with running QtWebEngine inside a Win10 virtual machine? If so, is there a workaround? I do all my development on virtual machines, and this issue is making it impossible to do so.

      Thanks for any insights

      P Offline
      P Offline
      pmh4514
      wrote on 21 Mar 2017, 17:59 last edited by
      #2

      @pmh4514

      I received an answer from Qt support, it solved the problem. Their answer below:

      On a virtual machine the OpenGL support might not be enough for rendering Qt WebEngine, so the quickest way to check if this is the case here is to do:

      set QT_OPENGL=angle

      on the command line or add:

      QGuiApplication::setAttribute(Qt::AA_UseOpenGLES);

      before the creation of the application object

      1 Reply Last reply
      1

      2/2

      21 Mar 2017, 17:59

      • Login

      • Login or register to search.
      2 out of 2
      • First post
        2/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved