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. QT 5.1: Pure desktop OpenGL in widget?
Forum Updated to NodeBB v4.3 + New Features

QT 5.1: Pure desktop OpenGL in widget?

Scheduled Pinned Locked Moved General and Desktop
12 Posts 4 Posters 4.6k 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.
  • S Offline
    S Offline
    semos
    wrote on last edited by
    #1

    Hi,
    I’am currently working on 3D editor: I need scene combined with system GUI. Something like my previous editor based on QT 4.x: www.youtube.com/watch?v=__EGoLDSBv8.

    1. Qt 5.1 have different approach to OpenGL. As I understood, it is recommended to use QWindow. But it is just a window, I need widget (QGLWidget), but it is deprecated. Why? It’s there different way to have opengl viewport in widget?

    2. Second question is about Angle and OpenGL|ES. For my editor, I preffer pure desktop OpenGL, how can I force QT to use it?

    Thanks!

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

      Hi,

      Please don't post the same thread in multiple sub-forum, one is enough

      "Duplicate":http://qt-project.org/forums/viewthread/33021/

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

      1 Reply Last reply
      0
      • S Offline
        S Offline
        semos
        wrote on last edited by
        #3

        Sorry, I don't know, which forum is better for this topic.

        1 Reply Last reply
        0
        • V Offline
          V Offline
          Vaquita Tim
          wrote on last edited by
          #4

          bq. 2) ...Angle and OpenGL|ES. For my editor, I preffer pure desktop OpenGL, how can I force QT to use it?

          You mean Qt ;-)

          I would like to do the same at some point probably, but I didn't do it so far. Still, I think the answer to this lies in how you configure the Qt libraries to be built.

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

            For that question it should be:

            @configure -opengl desktop@

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

            1 Reply Last reply
            0
            • V Offline
              V Offline
              Vaquita Tim
              wrote on last edited by
              #6

              Thanks S :-) Just need to find the time...

              1 Reply Last reply
              0
              • Z Offline
                Z Offline
                ZapB
                wrote on last edited by
                #7

                Instead of using QGLWidget (this will see no further development but a direct replacement for it is planned probably for 5.3), what you can do is as you say to use QWindow + QOpenGLContext for your GL content. You cna then embed this into your widget-based application using QWidget::createWindowContainer( myGLWindow ). See http://doc-snapshot.qt-project.org/qt5-release/qtwidgets/qwidget.html#createWindowContainer

                Nokia Certified Qt Specialist
                Interested in hearing about Qt related work

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  semos
                  wrote on last edited by
                  #8

                  Thank You ZapB! This looks very usable!

                  SGaist: thanks, I found this solution to. But I considered, OpenGL|ES is sufficient for my project, finally.

                  1 Reply Last reply
                  0
                  • Z Offline
                    Z Offline
                    ZapB
                    wrote on last edited by
                    #9

                    OK good. By the way, for particle effects, you will be able to get much better performance by making use of desktop OpenGL facilities such as transform feedback objects which allow you to perform the particle updates on the GPU.

                    Nokia Certified Qt Specialist
                    Interested in hearing about Qt related work

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      semos
                      wrote on last edited by
                      #10

                      Yes, I used desktop OpenGL many years in game development. Furtunately, this new project is only editor for physical objects. I need only model and lot of gizmos :-). Performance is minor. But thank you for this notice.

                      1 Reply Last reply
                      0
                      • Z Offline
                        Z Offline
                        ZapB
                        wrote on last edited by
                        #11

                        Ah sorry I misunderstood. I thought you were doing more work on your original editor (which looks very cool btw). Have fun!

                        Nokia Certified Qt Specialist
                        Interested in hearing about Qt related work

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          semos
                          wrote on last edited by
                          #12

                          Thank you :-)

                          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