The solution that the QT console program cannot run under Ubuntu and how to configure Xterm

Source: Internet
Author: User

The solution that the QT console program cannot run under Ubuntu and how to configure Xterm

Recently, because the teacher asked to be in the Ubuntu Qt on the process of multi-threaded server development, although only a simple call QT network module, but in order to avoid trouble, I am still very fucked in the QT Under the console program, but after the completion of the program to run after the following situation occurs.

The program runs, but there's only one cursor in the console that jumps and jumps. Because Baidu posture is wrong, waste a lot of time, finally understand is because QT creator does not support Gnome default terminal gnome-terminal.

So switch to Xterm's console.

The specific solution is to change the tools->options->system->terminal-> to XTERM-E.

This will solve the problem above.

But because Xterm's original interface is really miserable, so, let's say the following xterm configuration method.

The steps are as follows:

1) sudo vim. Xresources for configuration

Here is an example of a ready-made online sample.

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

The solution that the QT console program cannot run under Ubuntu and how to configure Xterm

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.