Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Can (HTML5+Qt Quick+CPP) and (QML+Qt Quick+CPP) applications coexist in ONE Qt project?
Forum Updated to NodeBB v4.3 + New Features

Can (HTML5+Qt Quick+CPP) and (QML+Qt Quick+CPP) applications coexist in ONE Qt project?

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 1.5k 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.
  • L Offline
    L Offline
    LakshmiSaripella
    wrote on last edited by
    #1

    I'm using Qt Creator - 5.0.2. Can we have 2 applications (HTML5+Qt Quick+CPP) and (QML+Qt Quick+CPP) in SINGLE Qt project? If yes, do we need to configure .pro file to execute the required type app selectively?

    1 Reply Last reply
    0
    • G Offline
      G Offline
      Gennon
      wrote on last edited by
      #2

      Do you need two executable files or is it good enough to have just one?

      /Gen

      1 Reply Last reply
      0
      • L Offline
        L Offline
        LakshmiSaripella
        wrote on last edited by
        #3

        Thanks for the response.

        By default, there is one entry point i.e. main.cpp in Qt Project (irrespective of type of the project). Thus, there will be one executable file.

        In my case, I wish to have 2 entry points i.e. 2 executable files.

        One executable when invoked should show HTML5 interface and its related functionality.
        Other executable when invoked, should show main.qml related UI & functionality

        Is this possible in one Qt project having single .pro file in application root? If yes, how to configure project.pro file instructing to execute file1, file2 selectively?

        1 Reply Last reply
        0
        • L Offline
          L Offline
          LakshmiSaripella
          wrote on last edited by
          #4

          I've got the problem resolved.

          Created a parent folder and put the QML-UI contents, HTML-UI contents in 2 separate folders under parent folder.

          Created a DuoApp.pro in parent folder having following content and it worked as expected by giving the facility to select app to run and also by creating 2 separate .exe files as entry points.

          "
          TEMPLATE = subdirs
          CONFIG += ordered

          SUBDIRS += QML-UI
          HTML-UI
          "

          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