Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    Recommended way of using OpenGL with Qt5

    General and Desktop
    3
    5
    1037
    Loading More Posts
    • 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.
    • X
      x6herbius last edited by

      I'm very soon going to be using OpenGL and Qt in my project at university. I have previously experimented with using the Qt3D external library but I have heard from some that it's somewhat outdated/obsolete, though I'm not aware of whether there is any equivalent library I can use. I'll need to use QGLWidgets (specifically not windows, as I need to embed and arrange the OpenGL viewports in the same way as any other widget) and performance-enhancing features of modern OpenGL (vertex buffers etc.) would be preferred. The convenience of the Qt3D library in terms of building and rendering geometry would also be a plus, even if it were not Qt3D specifically, as I'd rather not have to write a load of classes to handle this myself.

      What would be my best option in these circumstances?

      Thanks.

      1 Reply Last reply Reply Quote 0
      • sierdzio
        sierdzio Moderators last edited by

        Qt3D will be part of Qt 5.5 or 5.6: it is actively maintained and developed, but not ready for casual use just yet.

        In Qt 5.4, QOpenGLWidget becomes fully operational and QGLWidget is deprecated. So you should use QOpenGLWidget in your code. Also, since Qt 5.3, there are a lot of new helper classes and functions to make OpenGL development easier and faster.

        So, the answer is: Qt3D is coming, and for now you can use QOpenGLWidget, just make sure to use the newest available version of Qt.

        (Z(:^

        1 Reply Last reply Reply Quote 0
        • X
          x6herbius last edited by

          Cool, that's great. Will I be able to use the manually-compiled Qt3D until it's integrated? Things like QGLCamera were quite useful.

          1 Reply Last reply Reply Quote 0
          • sierdzio
            sierdzio Moderators last edited by

            I guess you could, but that codebase is rather old, as far as I know.

            (Z(:^

            1 Reply Last reply Reply Quote 0
            • Z
              ZapB last edited by

              The Qt3D rewrite is happening in the wip/newapi branch.

              Nokia Certified Qt Specialist
              Interested in hearing about Qt related work

              1 Reply Last reply Reply Quote 0
              • First post
                Last post