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. Widget 2D into OpenGL 3D view
Forum Updated to NodeBB v4.3 + New Features

Widget 2D into OpenGL 3D view

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 3 Posters 1.9k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by A Former User
    #1

    Hi,

    I want to link QWidget into a OpenGL window. The QWidget may be render into a FBO that applied on a billboard. It is a good way ?

    Regadrs,
    Robin

    ==========

    Bonjour,

    Je souhaiterais pouvoir interagir avec des widgets du type button dans une vue OpenGL. Typiquement avec un billboard contenant une interface 2D constitué de QWidget.
    Auriez vous une piste ?

    Merci d'avance,
    Robin

    1 Reply Last reply
    0
    • Y Offline
      Y Offline
      yoavmil
      wrote on last edited by
      #2

      for OpenGL, use inheret QOpenGLWidget.
      then just put other widgets on top of it.

      I'm not sure how to add widgets inside the QOpenGLWidget.

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

        Hi and welcome to devnet,

        Are you sure QWidget is you best bet ? Sounds like QtQuick might be a better fit in your case

        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
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          I don't think QtQuick is usefull for 3D interface. It's a powerfull tool for complex 2D interface.
          I don't want to have a HUD, I want a 3D user interface with QWidget inside my OpenGL scene.

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

            Just to be sure we are talking about the same thing, can you point to an example of what you would like to achieve ?

            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
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #6

              Yes, you can find a picture exemple here

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

                So you want widgets that you can turn around itself and around that scene ? Again I'd recommend QtQuick, if you want controls like buttons you have the QtQuick.Controls module.

                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
                • ? Offline
                  ? Offline
                  A Former User
                  wrote on last edited by
                  #8

                  Ok,

                  I think I didn't understand the power of QtQuick. I'll make some research on it.
                  Thank you very much :)

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

                    Depending on your needs, take a look at the Qt3D module which you can use with QML. Here you can find an example of what you can do with that module and QML

                    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

                    • Login

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