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. SIGINT by Ctrl+C in Qt Creator
Forum Updated to NodeBB v4.3 + New Features

SIGINT by Ctrl+C in Qt Creator

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
5 Posts 4 Posters 1.2k Views 2 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.
  • D Offline
    D Offline
    DungeonLords
    wrote on last edited by
    #1

    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.
    CtrlC how.png

    jsulmJ 1 Reply Last reply
    1
    • D Offline
      D Offline
      DungeonLords
      wrote on last edited by
      #5

      @SimonSchroeder @KH-219Design Thank you.
      Answers located here.

      1 Reply Last reply
      0
      • D DungeonLords

        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.
        CtrlC how.png

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

        @DungeonLords There is a red icon in the "Application Output" window to stop the application.

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

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SimonSchroeder
          wrote on last edited by
          #3

          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.

          1 Reply Last reply
          4
          • KH-219DesignK Offline
            KH-219DesignK Offline
            KH-219Design
            wrote on last edited by
            #4

            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
            

            https://stackoverflow.com/a/45556052/10278

            www.219design.com
            Software | Electrical | Mechanical | Product Design

            1 Reply Last reply
            0
            • D Offline
              D Offline
              DungeonLords
              wrote on last edited by
              #5

              @SimonSchroeder @KH-219Design Thank you.
              Answers located here.

              1 Reply Last reply
              0
              • D DungeonLords has marked this topic as solved on

              • Login

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