Project

General

Profile

Actions

Bug #4006

closed

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

Added by Kayra Akman over 9 years ago. Updated about 9 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.

Actions #1

Updated by Koen Deforche over 9 years ago

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

Updated by Benoit Daccache over 9 years ago

  • Status changed from InProgress to Resolved
Actions #3

Updated by Kayra Akman over 9 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.

Actions #4

Updated by Koen Deforche about 9 years ago

  • Status changed from Resolved to Closed
Actions #5

Updated by Koen Deforche about 9 years ago

  • Target version set to 3.3.5
Actions

Also available in: Atom PDF