Ok Thiago, sorry for the wrong example. In fact I had several variables like that, one of them a QObject. I left only the QMap in my example to make it simple, I should has left only the other one.

Sorry for that again. Your answer was correct: this warning comes from creating a QObject before creating QApplication.
Philippe.

Le 06-12-2016 00:00, Thiago Macieira a écrit :
Em segunda-feira, 5 de dezembro de 2016, às 22:54:31 PST, maitai escreveu:
I had my main like that:
QMap<QString, QString> folderMap;
int main(int argc, char *argv[])
{
     QApplication *app = new QApplication(argc, argv);
.....
}
and I had folderMap defined as external in other classes when needed

I was getting the warning in that case.

Maybe, but not from that QMap. Your example is not valid.
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to