Project

General

Profile

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.

Status:
Closed
Priority:
Normal
Assignee:
Benoit Daccache
Target version:
Start date:
04/26/2015
Due date:
% Done:

0%

Estimated time:

Description

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.

#1

Updated by Koen Deforche over 7 years ago

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

Updated by Benoit Daccache over 7 years ago

  • Status changed from InProgress to Resolved
#3

Updated by Kayra Akman over 7 years ago

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

In https://github.com/kdeforche/wt/blob/master/examples/wtwithqt/hello.C, line 37 reads:

// Needed when using WQCoreApplication with Qt eventloop = true

There exists a WQApplication class but not WQCoreApplication.

#4

Updated by Koen Deforche about 7 years ago

  • Status changed from Resolved to Closed
#5

Updated by Koen Deforche about 7 years ago

  • Target version set to 3.3.5

Also available in: Atom PDF