Entity or other in ApllicationWindow



  • Hello I'm trying to figure out how to show in the applicationwindow an entity with a mesh, first I do not know if you can do I find nothing on the documentation, could you help me or show me the right path? Thank you

    import QtQuick.Controls 1.4
    import QtQuick 2.2 as QQ2
    import Qt3D.Core 2.0
    import Qt3D.Render 2.0
    import Qt3D.Input 2.0
    import Qt3D.Extras 2.0
    
    ApplicationWindow {
        id: window
        visible: true
    
        menuBar: MenuBar {
                Menu {
                    title: "File"
                    MenuItem { text: "OpenFile" }
                    MenuItem { text: "Close" }
                }
    
                Menu {
                    title: "Edit"
                    MenuItem { text: "Cut" }
                    MenuItem { text: "Copy" }
                    MenuItem { text: "Paste" }
                }
    
    
    }
        Entity{
            id: entityMesh
            ancor://?????
    
    
        }
    }
    
    


  • There are examples on how to use Qt3D included in QtCreator. When you start QtCreator the topmost entry in the left views list (where Edit, Debug, etc. is) says Welcome. In there click on examples and search for 3D. There is for example the Qt3D Materials QML example. This should get you started.0_1517596292694_Screenshot from 2018-02-02 19-28-10.png



  • Good morning I understand where to start, but I wanted to put the classic menu File-> OpenFile but I can not figure out how to integrate it in the window.

    I would like to put the menuBar in this project as you would do?

    alt text


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.