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. QGLContext from GLXContext?
Qt 6.11 is out! See what's new in the release blog

QGLContext from GLXContext?

Scheduled Pinned Locked Moved General and Desktop
10 Posts 4 Posters 5.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.
  • B Offline
    B Offline
    baysmith
    wrote on last edited by
    #1

    Is it somehow possible to create a QGLContext from GLXContext?

    Imagine an application which uses OpenGL for GPU computations and that application can be run with and without a GUI. The parts of the application which are used to run without a GUI don't need to depend upon QtGui, but it is desirable to share the OpenGL context with the parts which use QtGui.

    Nokia Certified Qt Specialist.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      stukdev
      wrote on last edited by
      #2

      Sorry i can't answer you but i have answer to your tag. What is ql?

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        [quote author="stuk" date="1292227032"]Sorry i can't answer you but i have answer to your tag. What is ql?[/quote]

        GL -> OpenGL -> Open Graphic Library

        1 Reply Last reply
        0
        • S Offline
          S Offline
          stukdev
          wrote on last edited by
          #4

          No, non GL but QL i refer to the tag...
          Ok, maybe is an error i correct the tag QL to the GL. Ok?

          [quote author="przemo_li" date="1292229506"][quote author="stuk" date="1292227032"]Sorry i can't answer you but i have answer to your tag. What is ql?[/quote]

          GL -> OpenGL -> Open Graphic Library[/quote]

          1 Reply Last reply
          0
          • B Offline
            B Offline
            baysmith
            wrote on last edited by
            #5

            Yeah. That was a typo. I guess I have Qt-initis (the tendency to start every word with the letter Q).

            Nokia Certified Qt Specialist.

            1 Reply Last reply
            0
            • D Offline
              D Offline
              dangelog
              wrote on last edited by
              #6

              [quote author="Bradley" date="1291890381"]Is it somehow possible to create a QGLContext from GLXContext?

              Imagine an application which uses OpenGL for GPU computations and that application can be run with and without a GUI. The parts of the application which are used to run without a GUI don't need to depend upon QtGui, but it is desirable to share the OpenGL context with the parts which use QtGui.[/quote]

              What do you mean? QtOpenGL requires QtGui.

              Software Engineer
              KDAB (UK) Ltd., a KDAB Group company

              1 Reply Last reply
              0
              • S Offline
                S Offline
                stukdev
                wrote on last edited by
                #7

                Hehe all qt developer have qt-init :P

                [quote author="Bradley" date="1292258519"]Yeah. That was a typo. I guess I have Qt-initis (the tendency to start every word with the letter Q).[/quote]

                1 Reply Last reply
                0
                • B Offline
                  B Offline
                  baysmith
                  wrote on last edited by
                  #8

                  Yes, QtOpenGL requires QtGui, but not every OpenGL application requires Qt. Since part of this application won't require Qt, but will require OpenGL, it would be nice to have that part of the application create the platform-specific OpenGL context (directly, not using Qt). If the GUI part is enabled, it would request the platform-specific OpenGL context from the non-GUI part and use it.

                  Nokia Certified Qt Specialist.

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    dangelog
                    wrote on last edited by
                    #9

                    Well, how about going the other way around? Namely, if GUI is enabled, then the core part asks it for a context, otherwise it goes ahead and creates one?

                    Software Engineer
                    KDAB (UK) Ltd., a KDAB Group company

                    1 Reply Last reply
                    0
                    • B Offline
                      B Offline
                      baysmith
                      wrote on last edited by
                      #10

                      [quote author="peppe" date="1292266420"]Well, how about going the other way around? Namely, if GUI is enabled, then the core part asks it for a context, otherwise it goes ahead and creates one?[/quote]

                      Yeah. This is what we are doing at the moment. I was wondering if there was a different way.

                      Nokia Certified Qt Specialist.

                      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