Re: [Interest] moveToThread used in constructor to move "this"

2016-02-25 Thread Elvis Stansvik
2016-02-25 19:23 GMT+01:00 Elvis Stansvik : > 2016-02-25 19:10 GMT+01:00 Elvis Stansvik : >> 2016-02-25 18:24 GMT+01:00 Murphy, Sean : >Foo() : QObject(nullptr) { > moveToThread(_thread); > m_thread.start();

Re: [Interest] moveToThread used in constructor to move "this"

2016-02-25 Thread Elvis Stansvik
2016-02-25 19:10 GMT+01:00 Elvis Stansvik : > 2016-02-25 18:24 GMT+01:00 Murphy, Sean : >>> >Foo() : QObject(nullptr) { >>> > moveToThread(_thread); >>> > m_thread.start(); >>> >} >>> > >>> >~Foo() { >>> > m_thread.quit(); >>> >

Re: [Interest] moveToThread used in constructor to move "this"

2016-02-25 Thread Elvis Stansvik
2016-02-25 18:24 GMT+01:00 Murphy, Sean : >> >Foo() : QObject(nullptr) { >> > moveToThread(_thread); >> > m_thread.start(); >> >} >> > >> >~Foo() { >> > m_thread.quit(); >> > m_thread.wait(); >> >} >> >> This destructor is either never

Re: [Interest] moveToThread used in constructor to move "this"

2016-02-25 Thread Murphy, Sean
> >Foo() : QObject(nullptr) { > > moveToThread(_thread); > > m_thread.start(); > >} > > > >~Foo() { > > m_thread.quit(); > > m_thread.wait(); > >} > > This destructor is either never run or deadlocks. > > A QObject can only be destroyed in its thread of

Re: [Interest] Android Studio and Qt

2016-02-25 Thread rpzrpz...@gmail.com
You should look at the episodes 1-7 more carefully before tearing into QtActivity. md On 2/25/2016 7:47 AM, Jason H wrote: Jason: On 2/24/2016 8:38 PM, Jason H wrote: How does one "regenerate it back into the build directory"? You want to look at the "use gradle builds" and then generate

Re: [Interest] Android Studio and Qt

2016-02-25 Thread Jason H
> Jason: > > On 2/24/2016 8:38 PM, Jason H wrote: > > How does one "regenerate it back into the build directory"? > > You want to look at the "use gradle builds" and then generate android > files in the project android setup in project preferences. Did that. > This will create an android