Qt Creator closes with terminal
-
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 -
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 scenarioYes, 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
-
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@JacobNovitsky You can also start QtCreator using file manager or from the "start menu" of your desktop manager.
-
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
@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? -
@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? -
@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.
@ChrisW67 I need to open Qt App with other Qt App, I only know how to open execute the same with command line
-
@ChrisW67 I need to open Qt App with other Qt App, I only know how to open execute the same with command line
@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 -
@ChrisW67 I need to open Qt App with other Qt App, I only know how to open execute the same with command line
@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.