Sometimes you want to output certain information to the terminal for the user to view, but by default the application compiled by qt cannot be started in the terminal. This article records the startup method in the terminal, and only requires the following two steps:
- Check run in terminal
- .pro file to enable the terminal
CONFIG += console
Run the program and the information will be output to the terminal