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. Multiple opengl screens
Qt 6.11 is out! See what's new in the release blog

Multiple opengl screens

Scheduled Pinned Locked Moved Game Development
4 Posts 3 Posters 3.8k 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.
  • I Offline
    I Offline
    imranrobotics
    wrote on last edited by
    #1

    Hello i am new to QT. Earlier i was thinking its difficult to use it btu now i think its a nice and easy and awesome tool.

    Anyways i developed a small3D game in Horde3D game engine that uses opengl for creating a window that shows the graphics
    but it doesn't support creating more then one window. some one suggested me to use QT for creating four windows
    but i have no idea how should i start. :(

    I have four different camera views already in my game but those are displayed in the same opengl window .
    I think QT is the best option here to do that? can some one suggest me any tutorial for creating such thing ?

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

      May be using multiple QGLWidget on the same parent windows.

      http://doc-snapshot.qt-project.org/5.0/qglwidget.html#QGLWidget-2

      In most cases, the bug is mine. But of the remaining lines are correct.

      1 Reply Last reply
      0
      • I Offline
        I Offline
        imranrobotics
        wrote on last edited by
        #3

        Thank you so much
        i started looking at it and it seemed quite helpful . i was just looking at the hellogl example and i just tried to make two windows with that program just creating a new instanceof the window and it worked. am i going in the right direction?

        1. how can i integrate qt with my game engine ? i am using Horde3D game engine
          if any1 else wants to direct i will be thankful

        Thank You once again

        1 Reply Last reply
        0
        • H Offline
          H Offline
          hipersayan_x
          wrote on last edited by
          #4

          If you want to show multiple camera views in your game, a better approach is to use viewports:

          http://nehe.gamedev.net/tutorial/multiple_viewports/20002/

          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