Console program running problem in QT

Source: Internet
Author: User

Environment:

ubuntu14.04

Problem and Workaround:

QT control of his program, the default mode of operation is to output directly to the Print window. My program needs to be entered from the console, which is not the default way to run. Let it run in the terminal by setting the project Full option:

projects--build&run--run--Select Run in Terminal

At this point, there may be a problem, that is, not from the Output window, nor run from the terminal, this should be a terminal configuration problem, modify:

Menu--Tools--options--environment--general--system--terminal:/usr/bin/gnome-terminal-x

In this way, you can do it!

Console program running problem in QT

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.