Talk:Getting Started on the Commandline: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
(addendum)
 
(Suggest fix: add `Qt::` to `endl`.)
Line 7: Line 7:


CONFIG += console
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.

Revision as of 03:29, 16 March 2022

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.