I need clear QT console. What is the comand?
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
cout<<"How delete this?";
//system("CLS")?
return a.exec();
}
You can execute:
QProcess::execute("CLS");
This will of course only work on Windows. On Linux/Unix-ish systems, you'll need to do:
QProcess::execute("clear");
If all you need to do is clear the screen, these things will work. However, if you're trying to build a more sophisticated text-based interface (where certain lines are fixed, or if you want to draw some progress indicators or the like), you'll need something more sophisticated.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With