Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

qDebug() doesn't always appear in "Application Output"

$
0
0
Hello, I’ve seen a bunch of threads on this problem around the web, but none seemed to have fixed my issue. I am using Qt Creator under windows. When I use qDebug() in my main function it works flawlessly int main(int argc, char *argv[]) {     qDebug() << "Hello World - appear in Application Output please\n";     QApplication a(argc, argv);     MainWindow w;     w.show();     return a.exec(); } but then in my main window things get weird: MainWindow::~MainWindow() {       qDebug() << "Hello World - appear in Application Output please\n";     setWindowTitle(tr("My GUI"));   } This qDebug() statement does not appear in the App. Output console while the application is running. Occasionally it pops up upon application termination. I’m trying to use qDebug() like I’m used to using System.out.println(s) in Java. Any thoughts? Do I need to invoke a separate thread to print? Thanks.

Viewing all articles
Browse latest Browse all 13965

Trending Articles