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

QT3D

Scheduled Pinned Locked Moved General and Desktop
qt3dopenglqwidget
3 Posts 2 Posters 1.5k Views 2 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.
  • U Offline
    U Offline
    uauauaua
    wrote on last edited by
    #1

    Hi,
    can anybody explain me, why all of the qt3d-Examples are written as a QWindow application.

    Is there a possibilty to use qt3d/OpenGL in a QWidget-Application. With a Widget-area for die OpenGL-Output.

    Thank you for your help!

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Actually the Qt3D: Basic Shapes C++ Example is a widget application.
      It uses a QWindow container embedded into a widget to display OpenGL context but you could easily switch that to(QOpenGLWidget.
      There are a couple of (non Qt3D) examples of QOpenGLWidget like the Cube OpenGL ES 2.0 Example.

      1 Reply Last reply
      0
      • U Offline
        U Offline
        uauauaua
        wrote on last edited by
        #3

        Thank you Chris,

        I've tired to play with the "Qt3D: Basic Shapes C++ Example". I put the example in my Mainwidow Environment, an want to replace the main.cpp by the "on_application ..."-routine from the mainwindow program.

        I works but it shows me only a white screen. I checked it serveral times.

        I have no idea what is wrong?

        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