Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
206 views
in Technique[技术] by (71.8m points)

How can I increase the maximum number of lines ("window height") in a Qt console application?

I'm writing a quick&dirty number crunching test, using a Qt console application.

It prints several thousand lines, but the number of lines displayed in the console seems to be limited to about 300. This means that at the end I can no longer scroll back to the beginning of my printout.

How can I raise this limit? I found nothing in the project settings.

Or is it completely impossible, as the console window is controlled solely by my operating system? It's important for me to launch the program directly from Qt creator, so a solution where I use a batch script or similar trick to run my program is not preferable.

Does a solution even exist, or am I forced to switch to a Qt GUI application where I create my own console out of a QTextEdit widget?

question from:https://stackoverflow.com/questions/65880729/how-can-i-increase-the-maximum-number-of-lines-window-height-in-a-qt-console

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

The number of lines displayed and the number of lines in the buffer is a property of the operating system. You can change this. How to do this depends on your OS.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...