Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. Using OpenGL without Qt class
QtWS25 Last Chance

Using OpenGL without Qt class

Scheduled Pinned Locked Moved Game Development
4 Posts 4 Posters 2.0k Views
  • 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 Offline
    M Offline
    mohamad_1391
    wrote on last edited by
    #1

    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
    0
    • T Offline
      T Offline
      tilsitt
      wrote on last edited by
      #2

      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
      0
      • Z Offline
        Z Offline
        ZapB
        wrote on last edited by
        #3

        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
        0
        • M Offline
          M Offline
          Muegen
          wrote on last edited by
          #4

          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
          0

          • Login

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