Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Running two applications in the same Qt Creator instance
Forum Updated to NodeBB v4.3 + New Features

Running two applications in the same Qt Creator instance

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
5 Posts 3 Posters 9.9k 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.
  • A Offline
    A Offline
    alexey.petrenko
    wrote on last edited by
    #1

    I am developing two apps that interact with each other over network.

    They belong to the same subdirs project and I used to run them from the same instance of Qt Creator without any problems. E.g. I used the following usecases:

    • Run 1st app, then run 2nd app and see how they work

    • Debug 1st app, then run 2nd app

    • Debug 2nd app, then run 1st app

    All three cases worked just fine in all versions of Creator I've ever worked with.

    But in the Qt Creator 3.6.0 I see a different behaviour: the 1st app is immediately closed when I start the 2nd app. This is really inconvenient, is it a bug in Qt Creator?

    Let me show on a simple example:

    • My simple sample project with two apps

    • When I am debugging the 1st app and press Run for 2nd app Qt Creator briefly shows this window, then 1st app is closed and 2nd is launched.

    Is there a way to fix this? It used to work! Please help)

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      That's a new feature in Qt Creator 3.6. Go to the Build & Run panel in Qt Creator's preferences, then in General you have a combo box beside "Stop applications before building". You can change there the behavior of that feature.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      A MarkkyboyM 2 Replies Last reply
      4
      • SGaistS SGaist

        Hi,

        That's a new feature in Qt Creator 3.6. Go to the Build & Run panel in Qt Creator's preferences, then in General you have a combo box beside "Stop applications before building". You can change there the behavior of that feature.

        A Offline
        A Offline
        alexey.petrenko
        wrote on last edited by
        #3

        @SGaist oh thank you very much! This thing was driving me mad, I never even thought that can be a new feature. Should've checked the settings myself though...
        Thanks again, your solution totally works!

        I also posted this on SO: http://stackoverflow.com/questions/35002024/running-two-applications-in-qtcreator-3-6
        Will be happy if you post your solution there! Or if you don't want to, I'll do it myself. I guess this can help other people as well :)

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You're welcome !

          Since you can run your two applications again, please mark the thread as solved using the "Topic Tool" button so that other forum users may know a solution has been found :)

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • SGaistS SGaist

            Hi,

            That's a new feature in Qt Creator 3.6. Go to the Build & Run panel in Qt Creator's preferences, then in General you have a combo box beside "Stop applications before building". You can change there the behavior of that feature.

            MarkkyboyM Offline
            MarkkyboyM Offline
            Markkyboy
            wrote on last edited by
            #5

            @SGaist - still a useful piece of information some 7 years on, nice one!

            For me, your answer remedies a niggle I had with QtCreator for SailfishOS SDK.

            I 'd build an application on my Sony mobile, at some point I require a larger image to see detail in my app, so I start up SFOS Emulator but found that starting the build on Emulator meant the phone app being stopped. I chose option 'None' in General Settings.

            thanks!

            Don't just sit there standing around, pick up a shovel and sweep up!

            I live by the sea, not in it.

            1 Reply Last reply
            2

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved