Run executes 4 terminals



  • Dear reader,

    I am using Mac OS X Lion with the newest Qt version.
    I have set the option "run in terminal" because I just started learning C++ so all I am doing at this point is writing console (terminal) applications. I have set the path to my 'terminal' app.

    When I press the run button to test my code, it will execute my terminal in OS X Lion succesfully, the only strange and anoying this is that it executes four (4) terminal windows. All 4 have gibberish in them, even the one which shows my code (only on top, it says something like last time visited i.e. used the terminal app).

    Is there any way to prefent it from executing four (now it even executes more!) terminals everytime?



  • No one has any clue on how to fix this?


  • Moderators

    Can you provide a screen shot, perhaps? That's an odd issue.



  • This is the screenshot. It seems that my Terminal runs some various Qt resources which I do not even ask for automatically.

    http://img217.imageshack.us/img217/526/unled1rl.png

    The image is pretty large so I didn't use a image, but a link instead.

    Hope this gives you a bit more info on what is wrong.

    Best regards,

    GZ



  • Dear reader,

    I am using Mac OS X Lion with the newest Qt version.
    I have set the option “run in terminal” because I just started learning C++ so all I am doing at this point is writing console (terminal) applications.

    I have set the path to my ‘terminal’ app.nWhen I press the run button to test my code, it will execute my terminal in OS X Lion succesfully, the only strange and anoying this is that it executes four (4) terminal windows. All 4 have gibberish in them, even the one which shows my code (only on top, it says something like last time visited i.e. used the terminal app).

    Is there any way to prefent it from executing four (now it even executes more!) terminals everytime?
    This is the screenshot. It seems that my Terminal runs some various Qt resources which I do not even ask for automatically.

    http://img217.imageshack.us/img217/526/unled1rl.png

    The image is pretty large so I didn’t use a image, but a link instead.
    Hope this gives you a bit more info on what is wrong.

    Best regards,

    GZ


  • Moderators

    merged the 2 threads because they are the same.

    Please don't make unnecessary double posts.


  • Moderators

    If you're using Qt Creator, and if you're just wanting to view your console output, you shouldn't need to set the "Run in terminal" option. Any output from your application will automatically be visible in the "Application Output" panel at the bottom of the Creator window.



  • That's correct, but you can't use "cin" command's because it only supports output and no input. That's the whole problem otherwise I wouldn't need to do it this way haha.

    Best regards


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.