[Interest] Android: WARNING: QApplication was not created in the main() thread.
maitai
maitai at virtual-winds.org
Mon Dec 5 14:27:01 CET 2016
Hello,
Can you explain what is the bad thing about having this message?
BTW I had this message since a long time, since this thread I have
removed some global QObject declarations in my main, and the message is
gone. But it's not clear to me if it's any better and why.
Philippe.
Le 05-12-2016 06:34, Thiago Macieira a écrit :
> On domingo, 4 de dezembro de 2016 18:25:07 PST Jason H wrote:
>> > You must create QApplication in the thread that created 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.
>
> It doesn't matter how easy or hard it is.
>
> You will do it.
More information about the Interest
mailing list