Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Italian
  4. WebGL disabilitata

WebGL disabilitata

Scheduled Pinned Locked Moved Solved Italian
2 Posts 1 Posters 391 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.
  • E Offline
    E Offline
    elicat
    wrote on 10 Jul 2019, 10:11 last edited by
    #1

    Buongiorno,
    Uso la libreria grafica plotly (js) in un progetto QML / QWebEngine.
    Ho provato a testate la WebGL per visualizzare grafici in 3D
    Uso VS2017 / Windows 10 e QT 5.11.1

    Ho impostato i seguenti parametri nel main.cpp

    	QCoreApplication::setAttribute(Qt::AA_UseDesktopOpenGL);
    	QGuiApplication::setAttribute(Qt::AA_UseDesktopOpenGL);
    	QCoreApplication::setAttribute(Qt::AA_UseOpenGLES, true);
    	QGuiApplication::setAttribute(Qt::AA_UseOpenGLES, true);
    	_putenv("QTWEBENGINE_CHROMIUM_FLAGS=--enable-webgl-software-rendering");
    
    

    Poi nel .pro file

    LIBS + = opengl32.lib
    

    Il risultato è sempre lo stesso. la webGl risulta disabilitata. Qualcuno sa cosa fare?
    Grazie in anticipo per qualsiasi suggerimento.

    0_1562753357917_testwebgl.PNG

    Saluti, Gianfranco Elicat

    1 Reply Last reply
    0
    • E Offline
      E Offline
      elicat
      wrote on 23 Jan 2020, 07:54 last edited by
      #2

      Solved width version 5.14.0 and :

      QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
      
      	bool ret;
      	ret = qputenv("QTWEBENGINE_CHROMIUM_FLAGS", " --ignore-gpu-blacklist --enable-gpu-rasterization --enable-oop-rasterization --use-angle");
              /* for report in console */
      	ret = qputenv("QSG_INFO", "1");
              /* for automatic graphics hadware/software */
      	ret = qputenv("QT_OPENGL", "angle");
      	ret = qputenv("QT_ANGLE_PLATFORM", "d3d11");
      	ret = qputenv("QSG_RENDER_LOOP", "basic");
      
      	QApplication::setAttribute(Qt::AA_UseOpenGLES);
      	QCoreApplication::setAttribute(Qt::AA_UseOpenGLES);
      	QGuiApplication::setAttribute(Qt::AA_UseOpenGLES);
      
      	QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
      	QGuiApplication app(argc, argv);
      

      Saluti, Gianfranco Elicat

      1 Reply Last reply
      1

      • Login

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