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 terminal asking for user input

Qt creator terminal asking for user input

Scheduled Pinned Locked Moved Unsolved General and Desktop
17 Posts 6 Posters 3.3k Views 1 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.
  • G Offline
    G Offline
    graniteDev
    wrote on last edited by aha_1980
    #1

    Qt creator terminal is asking for user input but I can't provide it because it does not take user input. How do I get the qmake to open an external terminal so I can provide user input?

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      Did u try config +=console

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      G 1 Reply Last reply
      0
      • dheerendraD dheerendra

        Did u try config +=console

        G Offline
        G Offline
        graniteDev
        wrote on last edited by
        #3

        @dheerendra thanks, but I believe that is only for the application itself. I'm referring to running qmake.

        1 Reply Last reply
        0
        • N Offline
          N Offline
          nina22
          Banned
          wrote on last edited by
          #4
          This post is deleted!
          1 Reply Last reply
          0
          • dheerendraD Offline
            dheerendraD Offline
            dheerendra
            Qt Champions 2022
            wrote on last edited by
            #5

            At least I have not seen such option. You can try running qmake from commandline itself and try

            Dheerendra
            @Community Service
            Certified Qt Specialist
            http://www.pthinks.com

            G 1 Reply Last reply
            1
            • dheerendraD dheerendra

              At least I have not seen such option. You can try running qmake from commandline itself and try

              G Offline
              G Offline
              graniteDev
              wrote on last edited by
              #6

              @dheerendra yes, but I'm hoping to make it user friendly for my colleagues. we have one machine that will pop up an external command line and allows user input. None of the other's do, and I can't figure out why.

              aha_1980A 1 Reply Last reply
              0
              • G graniteDev

                @dheerendra yes, but I'm hoping to make it user friendly for my colleagues. we have one machine that will pop up an external command line and allows user input. None of the other's do, and I can't figure out why.

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

                @graniteDev which input is that?

                Qt has to stay free or it will die.

                G 1 Reply Last reply
                1
                • aha_1980A aha_1980

                  @graniteDev which input is that?

                  G Offline
                  G Offline
                  graniteDev
                  wrote on last edited by
                  #8

                  @aha_1980 part of our build requires running an external script that requires user input for it's operation.

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Hi,

                    How are you requesting the input currently ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    G 1 Reply Last reply
                    1
                    • SGaistS SGaist

                      Hi,

                      How are you requesting the input currently ?

                      G Offline
                      G Offline
                      graniteDev
                      wrote on last edited by
                      #10

                      @SGaist It's just a script that gets called as part of the build process to make sure all of our soup repos are correctly downloaded and of the right version. It requires user authentication though.

                      On one of our systems it works just right, the script window pops up in it's own cmd window (this is on Windows 10) and then the user can enter their credentials, the script does it's checking, and then closes and the build continues.

                      However on the rest of our systems, the external window doesn't open, instead the script runs inside the QtCreator console which does not allow for user input. This stops the build process because it just sits there waiting for user input that it can't receive.

                      The only solution I currently have is to clone this one working system. This has worked, the clones of this system behave the same way, but it's not an answer. What I need is to know how to invoke this behavior of opening an external command window, on purpose. Otherwise future modification to this "master" system could inadvertently kill this functionality and I'll have no way of getting it back.

                      aha_1980A 1 Reply Last reply
                      0
                      • G graniteDev

                        @SGaist It's just a script that gets called as part of the build process to make sure all of our soup repos are correctly downloaded and of the right version. It requires user authentication though.

                        On one of our systems it works just right, the script window pops up in it's own cmd window (this is on Windows 10) and then the user can enter their credentials, the script does it's checking, and then closes and the build continues.

                        However on the rest of our systems, the external window doesn't open, instead the script runs inside the QtCreator console which does not allow for user input. This stops the build process because it just sits there waiting for user input that it can't receive.

                        The only solution I currently have is to clone this one working system. This has worked, the clones of this system behave the same way, but it's not an answer. What I need is to know how to invoke this behavior of opening an external command window, on purpose. Otherwise future modification to this "master" system could inadvertently kill this functionality and I'll have no way of getting it back.

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

                        @graniteDev I think this is pure luck that the command window pops up.

                        I also think, this is no official/recommended way to set up the project. The usual way is to provide these parameters as qmake or make arguments, or to set them via an environment variable.

                        Qt has to stay free or it will die.

                        G 1 Reply Last reply
                        2
                        • aha_1980A aha_1980

                          @graniteDev I think this is pure luck that the command window pops up.

                          I also think, this is no official/recommended way to set up the project. The usual way is to provide these parameters as qmake or make arguments, or to set them via an environment variable.

                          G Offline
                          G Offline
                          graniteDev
                          wrote on last edited by
                          #12

                          @aha_1980 It may not be the official way, but it is the way we must do it. And since the window can pop up, and cloned systems behave the same way, it must be a setting somewhere, but I and my colleagues have yet to find it.

                          1 Reply Last reply
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #13

                            Did you check whether you had a difference of configuration of Qt Creator or the project itself between the working machine and the others ?

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            G 1 Reply Last reply
                            0
                            • SGaistS SGaist

                              Did you check whether you had a difference of configuration of Qt Creator or the project itself between the working machine and the others ?

                              G Offline
                              G Offline
                              graniteDev
                              wrote on last edited by
                              #14

                              @SGaist We've gone over QtCreator with a fine tooth comb. They are identical. It's project independent since it's qmake command calling an external script.

                              1 Reply Last reply
                              0
                              • SGaistS Offline
                                SGaistS Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on last edited by
                                #15

                                And from a project point of view ? Thinking about the "Run in terminal" parameter.

                                Interested in AI ? www.idiap.ch
                                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                G 1 Reply Last reply
                                1
                                • SGaistS SGaist

                                  And from a project point of view ? Thinking about the "Run in terminal" parameter.

                                  G Offline
                                  G Offline
                                  graniteDev
                                  wrote on last edited by
                                  #16

                                  @SGaist I think I know what you are getting at. This is a corporate project, cloned from the same repo on all machines involved. Some of the sub projects are console, some are widget applications, and one is qml. This script is called from qmake during the build of the whole project, not any one sub project.

                                  1 Reply Last reply
                                  0
                                  • SGaistS Offline
                                    SGaistS Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #17

                                    Would it be possible to share a minimal project that shows that behaviour ?

                                    Interested in AI ? www.idiap.ch
                                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                    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