qt creator 在linux下不显示控制台 及xterm字体配置

本文介绍了如何在Qt Creator的Linux环境中解决控制台不显示问题,并提供了xterm字体配置的详细步骤,包括在工具>选项>环境>终端中设置xterm -e,以及展示配置后的效果。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

qt creator不支持Gnome默认的终端gnome-terminal,换用xterm。

工具=》选项=》环境=》终端:xterm -e


xterm字体配置


root@simon-pc:/home/simon# cd ~
root@simon-pc:~# more .Xresources #没有则创建
.Xresources: 没有那个文件或目录
root@simon-pc:~# vi .Xresources
#以下为放在.Xresources中的代码

!xterm font and locale
xterm.locale:true
xterm.utf8: true
xterm*utf8Title:true
xterm*fontMenu*fontdefault*Label:Default
xterm*faceName:Consolas:antialias=true:pixelsize=18:italic
xterm*faceNameDoublesize:WenQuanYi Micro Hei Mono:pixelsize=18:antialias=true:italic
xterm*xftAntialias:true
xterm*cjkWidth:false
xterm*background:black
xterm*foreground:green
xterm*color0: #000000
xterm*color1: #CC0000
xterm*color2: #4E9A06
xterm*color3: #C4A000
xterm*color4: #3465A4
xterm*color5: #75507B
xterm*color6: #06989A
xterm*color7: #D3D7CF
xterm*color8: #555753
xterm*color9: #EF2929
xterm*color10: #8AE234
xterm*color11: #FCE94F
xterm*color12: #729FCF
xterm*color13: #AD7FA8
xterm*color14: #34E2E2
xterm*color15: #EEEEEC
 
!解决Alt键不好使
xterm*eightBitInput:false
xterm*altSendsEscape:true

:wq  #保存退出
root@simon-pc:~# xrdb ~/.Xresources #应用配置文件


效果图:


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值