Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. OpenGL Accelerated Series work only from Qt Creator
Qt 6.11 is out! See what's new in the release blog

OpenGL Accelerated Series work only from Qt Creator

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 742 Views 2 Watching
  • 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.
  • M Offline
    M Offline
    mBoot
    wrote on last edited by
    #1

    My system is: Windows 7, with Qt 5.11.1, QtCreator 4.7, MinGW 5.3

    I'm displaying many LineSeries (depending on the configuration from 1 to 21) on a QChart, with new points every ~20ms.

    For performance reasons I need to use OpenGL acceleration, which I can set by:

    setUseOpenGL(1)
    

    If I start the compiled program from QtCreator (Ctrl+R) it works correctly, since the "graphic" of the points changes, and the performance is increased.

    If I run the compiled exe from windows, it does not.

    Assuming a DLL is missing (even tho', I get no errors whatsoever) I copied:

    opengl32sw.dll
    libGLESv2.dll
    libEGL.dll
    Qt5OpenGLd.dll
    Qt5OpenGL.dll
    

    But nothing has changed, the performance is low and the graphic is the "common one".

    Do you have any idea on what I am doing wrong?

    Thanks

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      How are you doing the deployment ?
      Did you already check windeployqt ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply
      2
      • SGaistS SGaist

        Hi and welcome to devnet,

        How are you doing the deployment ?
        Did you already check windeployqt ?

        M Offline
        M Offline
        mBoot
        wrote on last edited by mBoot
        #3

        @SGaist Thank you for your answer.
        I did not know windeployqt, I had found many people suggesting using Dependency Walker and that's what I did :).

        Anyway, I've just run it, it copied a bunch of stuff and created directories in the exe folder.

        BUT, sadly the problem is still there.

        Maybe Qt Creator sets some enviromental variables?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mBoot
          wrote on last edited by mBoot
          #4

          Ok, following my last post I solved the issue.

          Qt Creator sets in the environment variables:

          QT_OPENGL = angle
          

          which was not set automatically in Windows.

          I simply tried

          set QT_OPENGL = angle
          

          in the console, and then I run the program (from the console). Now it works correctly.

          I believe Qt should implement some notification if setUseOpenGL fails for some reason tho' :-)

          Cheers

          1 Reply Last reply
          0

          • Login

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