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. QOpenGLWidget using OpenGL ES only when deployed, otherwise, using OpenGL desktop
Forum Updated to NodeBB v4.3 + New Features

QOpenGLWidget using OpenGL ES only when deployed, otherwise, using OpenGL desktop

Scheduled Pinned Locked Moved General and Desktop
qopenglwidgetopengl
1 Posts 1 Posters 565 Views 1 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.
  • F Offline
    F Offline
    floatingWoods
    wrote on 13 Jul 2015, 13:46 last edited by
    #1

    Hello,

    I am facing strange problems with my Qt application that I ported from Qt 5.1 to Qt 5.5 on Windows. I initially posted this question, but now that the problem is more specific, I am posting in a new thread. I hope this is ok.

    So in short: I am using old OpenGL code (i.e. glBegin(), etc.) inside of a Qt5.5 application. When I start the application from QtCreator, it works without problem and the QOpenGLWidget's context is telling me that it is not using OpenGL ES (when testing this with openglWidget->context()->isOpenGLES() ). So my old openGL code is running fine via QtCreator launch.

    When deployed however, the QOpenGLWidget's context is telling me that it is using OpenGL ES. So my old openGl code is not running fine and I experience crashes.

    I feel the answer to my problem is very simple, but I can't put my finger on it. I tried many approaches (by correctly deploying with windeployqt.exe, also trying to specify --no-angle), etc., but nothing helped. I am at a loss here.

    My project file contains (running on Windows 8):

    QT += network opengl widgets
    LIBS += -lopengl32
    

    I tried with:

    QCoreApplication::setAttribute(Qt::AA_UseDesktopOpenGL);
    

    but then nothing works anymore, when launched via QtCreator, or the deployed application.

    What else can I try?

    1 Reply Last reply
    0

    1/1

    13 Jul 2015, 13:46

    • Login

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