Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Creator closes with terminal
Forum Updated to NodeBB v4.3 + New Features

Qt Creator closes with terminal

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 587 Views
  • 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.
  • J Offline
    J Offline
    JacobNovitsky
    wrote on last edited by
    #1

    If I open my app with command ~/Qt/Tools/QtCreator/bin/qtcreator /home/supernova/App/CMakeLists.txt project in Qt Creator and I'm happy here.
    Next, if I close all terminals, Qt Creators gonna close too...
    Is it possible to prevent Qt Creator closing in that scenario

    C jsulmJ 2 Replies Last reply
    0
    • J JacobNovitsky

      If I open my app with command ~/Qt/Tools/QtCreator/bin/qtcreator /home/supernova/App/CMakeLists.txt project in Qt Creator and I'm happy here.
      Next, if I close all terminals, Qt Creators gonna close too...
      Is it possible to prevent Qt Creator closing in that scenario

      C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      Yes, run the process in the background. This has nothing to do with Qt or Qt Creator, it is a function of your shell (probably bash):

       ~/Qt/Tools/QtCreator/bin/qtcreator /home/supernova/App/CMakeLists.txt &
      

      Open the bash man page and search for background

      J 1 Reply Last reply
      1
      • J JacobNovitsky

        If I open my app with command ~/Qt/Tools/QtCreator/bin/qtcreator /home/supernova/App/CMakeLists.txt project in Qt Creator and I'm happy here.
        Next, if I close all terminals, Qt Creators gonna close too...
        Is it possible to prevent Qt Creator closing in that scenario

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @JacobNovitsky You can also start QtCreator using file manager or from the "start menu" of your desktop manager.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • C ChrisW67

          Yes, run the process in the background. This has nothing to do with Qt or Qt Creator, it is a function of your shell (probably bash):

           ~/Qt/Tools/QtCreator/bin/qtcreator /home/supernova/App/CMakeLists.txt &
          

          Open the bash man page and search for background

          J Offline
          J Offline
          JacobNovitsky
          wrote on last edited by JacobNovitsky
          #4

          @ChrisW67 it worked yesterday, but does not work now :)
          still after I close terminal it closes Qt Creator even if I opened Qt Creator with ~/Qt/Tools/QtCreator/bin/qtcreator /home/supernova/App/CMakeLists.txt &
          What am I doing wrong?

          C 1 Reply Last reply
          0
          • J JacobNovitsky

            @ChrisW67 it worked yesterday, but does not work now :)
            still after I close terminal it closes Qt Creator even if I opened Qt Creator with ~/Qt/Tools/QtCreator/bin/qtcreator /home/supernova/App/CMakeLists.txt &
            What am I doing wrong?

            C Offline
            C Offline
            ChrisW67
            wrote on last edited by
            #5

            @JacobNovitsky I do not understand why you are persisting with launching a GUI application from a terminal and then closing the terminal. Anyway,nohup might help.

            J 1 Reply Last reply
            1
            • C ChrisW67

              @JacobNovitsky I do not understand why you are persisting with launching a GUI application from a terminal and then closing the terminal. Anyway,nohup might help.

              J Offline
              J Offline
              JacobNovitsky
              wrote on last edited by
              #6

              @ChrisW67 I need to open Qt App with other Qt App, I only know how to open execute the same with command line

              jsulmJ C 2 Replies Last reply
              0
              • J JacobNovitsky

                @ChrisW67 I need to open Qt App with other Qt App, I only know how to open execute the same with command line

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @JacobNovitsky said in Qt Creator closes with terminal:

                I need to open Qt App with other Qt App

                Then I really don't understand what this has to do with QtCreator or a terminal.
                If you want to start another process from your application use https://doc.qt.io/qt-6/qprocess.html

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • J JacobNovitsky

                  @ChrisW67 I need to open Qt App with other Qt App, I only know how to open execute the same with command line

                  C Offline
                  C Offline
                  ChrisW67
                  wrote on last edited by ChrisW67
                  #8

                  @JacobNovitsky said in Qt Creator closes with terminal:

                  I need to open Qt App with other Qt App

                  It seems from the questions that you want to open an instance of Qt Creator, to open a Qt project B, from an application built by Qt project A (let's call it app A), running inside another instance of Qt Creator. Note that this is not the same as running the application built by Qt project B (let's call that app B).

                  This appears to be be an unusual request leaving responders confused as to your intention.

                  I think you might be confusing Qt Creator with the applications app A and app B. Are you sure you do not simply want Qt app A to launch app B?

                  Note that there is no part to play for Qt Creator here. The source code of app A simply uses QProcess to give app A the ability to launch the binary of app B at run time.

                  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