Qt wiki will be updated on October 12th 2023 starting at 11:30 AM (EEST) and the maintenance will last around 2-3 hours. During the maintenance the site will be unavailable.
Talk:Getting Started on the Commandline: Difference between revisions
Jump to navigation
Jump to search
(Suggest fix: add `Qt::` to `endl`.) |
No edit summary |
||
Line 13: | Line 13: | ||
I didn't need `CONFIG += console` - I think that's Windows only. | I didn't need `CONFIG += console` - I think that's Windows only. | ||
It this right? | |||
./hello | |||
Because I think it should be .\hello |
Latest revision as of 13:59, 11 March 2023
https://stackoverflow.com/questions/17382047/qt-printing-to-terminal
for console to actually output anything
after running qmake add to the .pro file
CONFIG += console
---
I had to use `Qt::endl` instead of `endl` in Qt 6.2.3.
I didn't need `CONFIG += console` - I think that's Windows only.
It this right? ./hello
Because I think it should be .\hello