QCoreApplication: why doesn't the output of QDebug?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
19 views
Below a very simple code. Which should bring first run, then pony. But the output only the first word.
#include #include int main(int argc, char *argv[]) { qDebug() << "run"; QCoreApplication a(argc, argv); qDebug() << "pony"; return a.exec(); }


And generally after the line QCoreApplication a(argc, argv) doesn't work not only for the QDebug in my case also QTCPServer does not start.

Pro file. Interestingly, on the stationary computer, this same code worked fine. And that I do everything on my laptop c Lubuntu. At the country decided to finish the job) And previously was the new qt from the official website. Already completely deleted it and put version 5.9.1 packet Manager.

QT += core CONFIG += c++11 CONFIG += console CONFIG += app_bundle TEMPLATE = app SOURCES += main.cpp


Seems the problem is specific, in Google not found the answer. Maybe the problem with my hardware, I hope it is not.
by | 19 views

1 Answer

0 like 0 dislike
by

Related questions

0 like 0 dislike
1 answer
asked Apr 3, 2019 by Profi_GMan
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
asked May 4, 2019 by kolomiec_artiom
110,608 questions
257,187 answers
0 comments
40,796 users