SIGINT by Ctrl+C in Qt Creator
-
I use Qt Creator. I can run my application and watch console at Qt Creator. But how I can send Ctrl+C to my application using Qt Creator?
I try to use google but no good answer...
P.S. If I run my application in GNOME Terminal then Ctrl+C works good.
-
@SimonSchroeder @KH-219Design Thank you.
Answers located here. -
I use Qt Creator. I can run my application and watch console at Qt Creator. But how I can send Ctrl+C to my application using Qt Creator?
I try to use google but no good answer...
P.S. If I run my application in GNOME Terminal then Ctrl+C works good.
@DungeonLords There is a red icon in the "Application Output" window to stop the application.
-
If you need to use terminal functionality (like Ctrl+C), then you need to run a terminal. Qt Creator only forwards the output of the application. It is not a terminal replacement. Under Project->Run there is a checkbox to run the program inside a terminal windows. Then you can use Ctrl+C.
-
If you are debugging the application then you can (at a gdb prompt) command the debugger to send the same signal as Ctrl+C:
(gdb) signal 2
-
@SimonSchroeder @KH-219Design Thank you.
Answers located here. -