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. I cannot see anything con console - ubuntu pangolin [12.04]

I cannot see anything con console - ubuntu pangolin [12.04]

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 10.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.
  • S Offline
    S Offline
    SrArcos
    wrote on last edited by
    #1

    Hi all.
    I am studying C++ and I have chosen QtCreator to make my practices ... The problem is that I am going to do console applications until I learn more about create and manage classes in C++.

    I installed QtCreator 2.4.1 on my linux ubuntu 12.04 LTS and have chosen the option that appears in menu "File-> New Project or File-> Other proyects-> Plain C++ Project" and this creates an application "HelloWorld".

    But when the application starts the console does not display anything. Is there something I must configure?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      When you say "the console" where do you mean? That template creates a project for program that outputs text. That project should have been configured to open a separate terminal. Do you see a separate terminal? If so, the output should be there:
      @
      Hello World!
      Press <RETURN> to close this window... @

      If you got no terminal at all then check:

      • Project (Ctrl-5), Run Settings, Run in terminal is checked
      • Tools menu, Options..., Environment page, General tab, Terminal command. Defaults to "xterm -e". Is xterm installed? You can use other terminals but I have yet to make KDE konsole work. I cannot vouch for Gnome-ish terminals.
      1 Reply Last reply
      0
      • S Offline
        S Offline
        SrArcos
        wrote on last edited by
        #3

        It works! Thanks

        • I saw the terminal but the terminal did not show anything.

        • (run in terminal is checked)

        • But in Environment->General the terminal was set up at "x-terminal-emulator -e". I replace it for xterm -e and It works fine. Thanks!

        1 Reply Last reply
        0
        • C Offline
          C Offline
          ChrisW67
          wrote on last edited by
          #4

          The C++ code is not the issue here.

          What is the terminal program? What are the settings under Tools Options? What, if anything, is showing in the "Application Output" pane inside the Qt Creator?

          Edit: I see you fixed it an edited your post while I was writing :)

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SrArcos
            wrote on last edited by
            #5

            Yes, thanks, I was trying with "xterm -e" instead of "x-terminal-emulator -e" just after I have written "(run in terminal is checked)" xD

            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