Qt Forum

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

    Using OpenGL without Qt class

    Game Development
    4
    4
    1705
    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.
    • M
      mohamad_1391 last edited by

      I would like to use OpenGL in a Qt program without QGLWidget .I mean use Qt only for UI but for creat buffers ,context,use flags and etc use OpenGL functions .Something like what we define in Windows use window.h but using qt for other OS.
      I do not know how I do it

      1 Reply Last reply Reply Quote 0
      • T
        tilsitt last edited by

        Hi,

        Whatever you want to do with OpenGL, to display something there is a point you will have to open a window and to create an OpenGL context associated with it. According to your post, you want something multi OS, and your are planning to use Qt for UI: what's wrong with using QGLWidget?

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

          Why not just use QWindow and QOpenGLContext? That takes away the pain of context and window creation. Then you can do as you please for the rest of your GL work either use Qt's enabler classes or do it yourself. This is Qt5 though.

          Nokia Certified Qt Specialist
          Interested in hearing about Qt related work

          1 Reply Last reply Reply Quote 0
          • M
            Muegen last edited by

            This:
            [quote author="ZapB" date="1361178528"]Why not just use QWindow and QOpenGLContext? That takes away the pain of context and window creation. Then you can do as you please for the rest of your GL work either use Qt's enabler classes or do it yourself. This is Qt5 though.[/quote]

            Use the ease of Qt for the window/ui, use GL for the rest(just like if you weren't using Qt).

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