Solution for failure to run the QT console program in Ubuntu and how to configure XTerm

Source: Internet
Author: User

Recently, the teacher asked me to process multi-threaded server development on QT under Ubuntu. Although I only called the network module of qt, in order to avoid the trouble, I wrote the console program in QT, but the following occurs when I run the program.

The program is running, but there is only one cursor on the console. Due to Baidu's incorrect posture, it took a lot of time to understand that qt creator does not support Gnome default terminal gnome-terminal.

Therefore, you need to switch to the XTerm console.

The specific solution is to change "tools-> options-> system-> Terminal-> to" xterm-e.

In this way, the above problem can be solved.

However, because the original XTerm interface is terrible, let's talk about the XTerm configuration method.

The procedure is as follows:

1) Configure sudo vim. Xresources

The following is a ready-made online example.

Xft. dpi: 96
Xpdf. title: PDF
XTerm * locale: true
XTerm * utf8Title: true
XTerm * fontMenu * fontdefault * Label: Default
XTerm * faceName: Lucida Console
XTerm * faceNameDoublesize: LiHei Pro
XTerm * faceSize: 10
XTerm * faceSize1: 10
XTerm * faceSize2: 10
XTerm * faceSize3: 10
XTerm * faceSize4: 10
XTerm * faceSize5: 10
XTerm * faceSize6: 10
XTerm. cjkWidth: true
XTerm * background: #1c5572
XTerm * foreground: white
XTerm * scrollBar: true
XTerm * rightScrollBar: true
XTerm * jumpScroll: true
XTerm * SaveLines: 1000

2) enter the following command: sudo xrdb-load ~ /. Xresources
 
In this way, the interface is slightly eye-catching.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.