Bug #4006

QCoreApplication, instead of QApplication, is enough to have a Qt event loop

Added by Kayra Akman almost 8 years ago. Updated about 7 years ago.

Benoit Daccache
Target version:
Start date:
Due date:
% Done:


Estimated time:


README.text in wt/examples/wtwithqt/lib mentions that a QApplication object is needed if Qt event loop is required. However QCoreApplication is enough and should be preferred for most of the applications since QApplication pulls in QtGui which most likely won't be necessary in a Wt application.

The hello.C file of the example application in wt/examples/wtwithqt #includes and instantiates a QApplication instance in main() if the the relevant lines are uncommented. These should be changed to QCoreApplication.


Updated by Koen Deforche over 7 years ago

  • Status changed from New to InProgress
  • Assignee set to Benoit Daccache

Updated by Benoit Daccache over 7 years ago

  • Status changed from InProgress to Resolved

Updated by Kayra Akman over 7 years ago

The change to resolve this issue introduced a small error in a comment.

In, line 37 reads:

// Needed when using WQCoreApplication with Qt eventloop = true

There exists a WQApplication class but not WQCoreApplication.


Updated by Koen Deforche about 7 years ago

  • Status changed from Resolved to Closed

Updated by Koen Deforche about 7 years ago

  • Target version set to 3.3.5

Also available in: Atom PDF