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. Qt 3D Display
Forum Updated to NodeBB v4.3 + New Features

Qt 3D Display

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 941 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.
  • O Offline
    O Offline
    ofmrew
    wrote on last edited by
    #1

    I am trying to understand the display component of Qt 3D. All of the examples use Qt3DExtras::Qt3DWindow which appears to open an independent window, a subclass of QWindow, from a console application. What if I want to create a 3D application where there might be one or more 3D windows embedded in a UI with pushbuttons and other controls. Is there a widget for that? There is an QOpenGLWidget, but it does not seem to be integrated with Qt 3D or am I missing something?

    I hope it is as simple as using QtCreator to creat the UI and place a QWidget were I want the Qt 3D to be and promote the QWidget to a Qt3DExtras::Qt3DWindow. Are there any C++ examples resembling what I want?

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

      Hi! The easiest way for now is wrapping a Qt3DWindow into a QWidget using createWindowContainer:

      Qt3DExtras::Qt3DWindow *my3dwindow = new Qt3DExtras::Qt3DWindow();
      QWidget *my3dwidget = QWidget::createWindowContainer(window);
      

      An example for this can be found here.

      O 1 Reply Last reply
      2
      • ? A Former User

        Hi! The easiest way for now is wrapping a Qt3DWindow into a QWidget using createWindowContainer:

        Qt3DExtras::Qt3DWindow *my3dwindow = new Qt3DExtras::Qt3DWindow();
        QWidget *my3dwidget = QWidget::createWindowContainer(window);
        

        An example for this can be found here.

        O Offline
        O Offline
        ofmrew
        wrote on last edited by
        #3

        @Wieland Thank you very much. It is exactly what I was looking for. I have been combing through the Qt 3D documentation but did not run across this.

        ? 1 Reply Last reply
        0
        • O ofmrew

          @Wieland Thank you very much. It is exactly what I was looking for. I have been combing through the Qt 3D documentation but did not run across this.

          ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          @ofmrew Yea, the state of the 3D docs is still... well, let's call it "beta" ;-)

          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