utkuf
utkuf

Reputation: 1

How to run two display from different projects in single window in qml?

there are two qml projects. I want to create another project which includes these two projects and only one window which contains others' windows. Should I use subdirs or another and how ?

Upvotes: 0

Views: 165

Answers (1)

mohabouje
mohabouje

Reputation: 4050

If you are using qmake, you should probably take a look into this link. The idea is to keep each subproject as an independent project.

Each of those projects should provide the different components you may use, I guess GUI components. You can create a main one that depends on both of them.

/MyAwesomeApp
   |--- subdirs.pro
   `--- src
        |
        |--- app
        |    |--- app.pro
        |    `--- ... (source files of app)
        |--- guilibA
        |    |--- guilibA.pro
        |    `--- ... (source files of lib)
        `--- guilibB
             |--- guilibB.pro
             `--- ... (source files of lib2)

Upvotes: 1

Related Questions