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. Close console app without pressing button
Forum Updated to NodeBB v4.3 + New Features

Close console app without pressing button

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 654 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.
  • ODБOïO Offline
    ODБOïO Offline
    ODБOï
    wrote on last edited by
    #1

    Hi,
    Is there a way to close a console app without having to press a key ?
    Or start it with no window ?

    when qApp.close() is called my app quits but i need to push a kay to close the console window.

    aha_1980A 1 Reply Last reply
    0
    • ODБOïO ODБOï

      Hi,
      Is there a way to close a console app without having to press a key ?
      Or start it with no window ?

      when qApp.close() is called my app quits but i need to push a kay to close the console window.

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @LeLev

      If you are running within Qt Creator and you don't need to input anything to your program, you can Select Projects > Build & Run > Run and uncheck "Run in terminal"

      Qt has to stay free or it will die.

      ODБOïO 1 Reply Last reply
      3
      • aha_1980A aha_1980

        @LeLev

        If you are running within Qt Creator and you don't need to input anything to your program, you can Select Projects > Build & Run > Run and uncheck "Run in terminal"

        ODБOïO Offline
        ODБOïO Offline
        ODБOï
        wrote on last edited by
        #3

        hi

        @aha_1980 said in Close console app without pressing button:

        If you are running within Qt Creator

        thx, this will still work if i deploy the application ?

        aha_1980A 1 Reply Last reply
        0
        • ODБOïO ODБOï

          hi

          @aha_1980 said in Close console app without pressing button:

          If you are running within Qt Creator

          thx, this will still work if i deploy the application ?

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @LeLev Why don't you try it? :)

          The checkbox does not change your program, it just changes the way Qt Creator runs it.

          Qt has to stay free or it will die.

          ODБOïO 1 Reply Last reply
          2
          • aha_1980A aha_1980

            @LeLev Why don't you try it? :)

            The checkbox does not change your program, it just changes the way Qt Creator runs it.

            ODБOïO Offline
            ODБOïO Offline
            ODБOï
            wrote on last edited by
            #5

            I thought it was useless to mention that i will test it now.

            @aha_1980 said in Close console app without pressing button:

            The checkbox does not change your program, it just changes the way Qt Creator runs it.

            Thank you

            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