Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Multi-window application



  • Hi!
    I have several projects created in QT, and now I need to somehow load all the created projects into one created project, and then open the project that was selected using a normal button (just a working form should open), but I don't need to implement it through QFile, because I don't need to open it through a .exe application, but just a separate window with some selected project, after which its working form should open.


  • Lifetime Qt Champion

    Hi
    You can include the other windows .h and .cpp and simply create a instance of them when needed. In the master project.
    Else im not really sure what you are asking.


  • Lifetime Qt Champion

    Hi
    You can include the other windows .h and .cpp and simply create a instance of them when needed. In the master project.
    Else im not really sure what you are asking.



  • @mrjj It turns out that I will have to add all the projects (8 of them) to my project ( .cpp and .h files), and then display their form via the from instance, if necessary?


  • Lifetime Qt Champion

    @Troyer
    Hi
    Yes if their .cpp contains code you use, this is the only way.
    If it was just to show the UI then UILoader could be used but
    it sounds like you want each window to function as it does in the standalone
    project ?



  • @mrjj Then I will do it through instances. Just connecting all the projects, I probably get confused in their .cpp and .h files)


Log in to reply