Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. How to output a single line in Qt Creator 2.4.1 ?
Forum Updated to NodeBB v4.3 + New Features

How to output a single line in Qt Creator 2.4.1 ?

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 3 Posters 2.0k 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.
  • F Offline
    F Offline
    fen1ksss
    wrote on last edited by
    #1

    I'm using Qt Creator 2.4.1 based on Qt 4.7.4

    I've made a simple "Hello, world" program

    @int main()
    {
    std::cout << "Hello World!" << std::endl;
    }@

    But when I run it, nothing appears in the Application output, how to enable it?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Either run in terminal (there is a checkbox in Projects pane) or use qDebug().

      (Z(:^

      1 Reply Last reply
      0
      • F Offline
        F Offline
        fen1ksss
        wrote on last edited by
        #3

        Where exactly this checkbox in the Project pane? right click?

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dotK
          wrote on last edited by
          #4

          In the left, you have a bar, go to "Project">>"Run Settings" and you will see a checkbox with a text "Run on Terminal"...

          I think is this.

          [.k] - A Mad Programmer

          1 Reply Last reply
          0
          • F Offline
            F Offline
            fen1ksss
            wrote on last edited by
            #5

            I have added /Applications/Utilities/Terminal.app to the Preferences -> Environment,

            in “Project”>>“Run Settings” the checkbox was already checked,

            now on the left side line "Launching" freezes for a long time with a grey color
            and 4 Terminal windows appear on the back screen. What is wrong?

            1 Reply Last reply
            0
            • D Offline
              D Offline
              dotK
              wrote on last edited by
              #6

              Try right click on project and clean project, after this, do a qmake, rebuild and build, and try run application again. I never see this, can you send the complete code of your application?

              [.k] - A Mad Programmer

              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