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/ES on Qt5 QWidget
Forum Updated to NodeBB v4.3 + New Features

OpenGL/ES on Qt5 QWidget

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.0k 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.
  • G Offline
    G Offline
    gzhu
    wrote on last edited by
    #1

    i really want to use opengl on qwidget. qt5 makes it rather difficult. it is a daunting task for me to custom compile qt5 with -opengl desktop. error messages keep coming up.

    are there plans to release pre-built qt5 with -opengl desktop? or is there any learning material on using opengl es on qglwidget? i only see tutorial on opengl es with qwindow.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mfeemster
      wrote on last edited by
      #2

      I can't speak to the future plans of Qt because I'm not involved with the development. However, I can say that I went down the same path you did and your only option is to rebuild with opengl desktop. It's a major pain in the butt to do, so allocate yourself at least a full day, maybe two, just to get it building.

      It'd be nice if they'd get their builds working a little more trouble free, but you get what you pay for. I've responded to a couple of posts on these boards about getting OpenGL building and running. There's also some good blog articles around the net about doing it with MSVC.

      I recommend first installing the Qt5 via the installer, then compiling from source, and then pointing your Qt paths to the newly compile binaries.

      After you're all up and running, you still have to do some strange stuff to use any legacy OpenGL calls, even something as simple as drawing a line.

      github.com/mfeemster/fractorium/wiki

      1 Reply Last reply
      0
      • G Offline
        G Offline
        gzhu
        wrote on last edited by
        #3

        Okay, I will give it another go on building Qt5.

        My other question is, how do I use OpenGL ES in QGLWidget?

        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