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