Hello,
Using this testcase:
#include <QCoreApplication>
#include <QTimer>
#include <QDebug>
int main(int argv, char **args)
{
QCoreApplication app(argv, args);
qDebug() << QCoreApplication::instance() << qApp;
QTimer::singleShot(0, qApp, SLOT(quit()));
return app.exec();
}
and building with ubuntu Qt packages with g++-5 (which I probably got from
https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test
) I get incompatible runtime behavior:
stephen@hal:/tmp/qtbug$ ./qtbug
QObject(0x0) QObject(0x0)
^C
That is, the QCoreApplication::instance() reports a null pointer in qDebug,
and the singleShot does not work.
This only happens with the ubuntu Qt packages for me. With the QtC package
it works as expected.
In case anyone else runs into this issue.
Thanks,
Steve.
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development