DevHeads.net

class SimpleJob requires a valid object of class QCoreApplication

If no valid application object is present, the constructor of SimpleJob causes
a NULL pointer dereference.

Please add the following comment to the description of class SimpleJob:

An object of this class (or of a derived class) may only be created when the
application object (derived from QCoreApplication) is present.

Thank you,
Chris

Comments

Re: class SimpleJob requires a valid object of class QCoreApplic

By David Faure at 12/12/2013 - 14:49

On Sunday 17 November 2013 21:36:22 Krzysztof ┼╗elechowski wrote:
Won't do.

*Everything* in Qt needs a QCoreApplication to exist.

Without QCoreApplication, you not only have no event loop, but even things
like QString::fromLocal8Bit() are not correctly configured.

This is in no way specific to KIO::SimpleJob.