Qt Creator:在终端运行 [英] Qt Creator: Run in Terminal
问题描述
我想获得完整的控制台功能运行在Qt Creator中的程序,这里描述的同样的问题:使用Qt Creator的控制台输入
I want to get full console functionality running the program in Qt Creator, the same problem as described here: Console input with Qt Creator
当我在配置属性中选中运行终端时,将打开空终端窗口,而不显示我的程序输出。工具 - 选项 - 常规 - 终端具有此值:x-terminal-emulator -e。我如何得到这个工作?我的操作系统是Ubuntu 10.4。
When I check "Run in Terminal" in configuration properties, empty terminal window is opened, without my program output. Tools - Options - General - Terminal has this value: "x-terminal-emulator -e". How can I get this working? My OS is Ubuntu 10.4.
注意:请不要关闭这个问题,它不重复!我需要解决方案Ubuntu OS。
Note: Please don't close this question, it is not duplicated! I need solution for Ubuntu OS.
推荐答案
在工具选项环境一般,更改终端值从 x-terminal-emulator -e
到
/ usr / bin / xterm -e
。这对我来说是伎俩。
Under Tools-Options-Environment-General, change the terminal value from x-terminal-emulator -e
to
/usr/bin/xterm -e
. This did the trick for me.
(找到此修复此处: https://bugs.launchpad.net/ubuntu/+source/qtcreator/+bug/566387 )
这篇关于Qt Creator:在终端运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!