Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Running two applications in the same Qt Creator instance

    Tools
    2
    4
    8476
    Loading More Posts
    • 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
      alexey.petrenko last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 1 Reply Last reply Reply Quote 2
        • A
          alexey.petrenko @SGaist last edited by

          @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 Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 0
            • First post
              Last post