> Sent: Friday, December 02, 2016 at 5:50 PM > From: "Thiago Macieira" <thiago.macie...@intel.com> > To: interest@qt-project.org > Subject: Re: [Interest] Android: WARNING: QApplication was not created in the > main() thread. > > On sexta-feira, 2 de dezembro de 2016 21:25:51 PST Jason H wrote: > > I OpenGLRenderer: Initialized EGL, version 1.4 > > W : (null):0 ((null)): WARNING: QApplication was not created in the > > main() thread. > > > > What's the significance of that warning on Android? I don't think it's > > possible to create it in the main() thread? > > You must create QApplication in the thread that created the first QObject. > > In fact, you should make QApplication *be* the first QObject.
You'd think that'd be easy to do, but... This is android. I don't always get to have a QApplication. I only get a QAppplication after the activity is started. I get QObjects created before my QApplication when the OS interacts with my app without the QtActivity running. _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest