Re: [Interest] Event handling for QObjects created before QApplication

2014-10-06 Thread Alan Ezust
Done. https://codereview.qt-project.org/96416 On Sun, Oct 5, 2014 at 1:22 PM, Thiago Macieira wrote: > On Sunday 05 October 2014 08:50:11 Alan Ezust wrote: > > Here are my suggested changes to the threads.qdoc. What do you think? > > [] > > Looks good, except for the last sentence (starti

Re: [Interest] Event handling for QObjects created before QApplication

2014-10-05 Thread Thiago Macieira
On Sunday 05 October 2014 08:50:11 Alan Ezust wrote: > Here are my suggested changes to the threads.qdoc. What do you think? > > diff --git a/doc/src/frameworks-technologies/threads.qdoc > b/doc/src/frameworks-technologies/threads.qdoc > index 5e92425..b5136fe 100644 > --- a/doc/src/frameworks-tec

Re: [Interest] Event handling for QObjects created before QApplication

2014-10-05 Thread Alan Ezust
Here are my suggested changes to the threads.qdoc. What do you think? diff --git a/doc/src/frameworks-technologies/threads.qdoc b/doc/src/frameworks-technologies/threads.qdoc index 5e92425..b5136fe 100644 --- a/doc/src/frameworks-technologies/threads.qdoc +++ b/doc/src/frameworks-technologies/thre

Re: [Interest] Event handling for QObjects created before QApplication

2014-09-24 Thread Thiago Macieira
On Wednesday 24 September 2014 11:20:39 Hamish Moffatt wrote: > > Qt is not supported before the creation of QCoreApplication. Your use-case > > is not supported, so no answer is necessary. > > > > Just don't do it. > > > > Note: the doc is wrong. > > Does that mean static objects are not suppor

Re: [Interest] Event handling for QObjects created before QApplication

2014-09-23 Thread Rainer Wiesenfarth
Am 24.09.2014 03:20, schrieb Hamish Moffatt: Does that mean static objects are not supported either? I would assume so, yes, as long as you think of static *QObjects*. All non-QOject derived classes should also be usable for static instances. But I would be careful with "complex" classes whi

Re: [Interest] Event handling for QObjects created before QApplication

2014-09-23 Thread Hamish Moffatt
On 22/09/14 10:46, Thiago Macieira wrote: > On Monday 22 September 2014 04:24:21 Dmitrii Volosnykh wrote: >> Threads and QObjects >> tutorial >> >> says: >>> Note that for QObjects that are created before QApplication, >>> QObject::thread() retu

Re: [Interest] Event handling for QObjects created before QApplication

2014-09-22 Thread Thiago Macieira
On Monday 22 September 2014 10:11:01 Till Oliver Knoll wrote: > So in theory it could mean that (only) events sent by > QCoreApplication::sendEvent are getting through to your QObject, even > without a QCoreApplication instance being around. Not even sendEvent: inline bool QCoreApplication::sendE

Re: [Interest] Event handling for QObjects created before QApplication

2014-09-22 Thread Dmitrii Volosnykh
Thank you for your answers and recommendations. I never create QObjects before QCoreApplication, so don't worry. Just was re-reading docs and was confused by that part, especially be the word "posted" since QCoreApplication::postEvent() supposed to put event in the queue which is not handled. 2014

Re: [Interest] Event handling for QObjects created before QApplication

2014-09-22 Thread Till Oliver Knoll
Am 22.09.2014 um 02:46 schrieb Thiago Macieira : > On Monday 22 September 2014 04:24:21 Dmitrii Volosnykh wrote: >> Threads and QObjects >> tutorial >> >> says: >>> Note that for QObjects that are created before QApplication, >>> QObject::thre

Re: [Interest] Event handling for QObjects created before QApplication

2014-09-21 Thread Thiago Macieira
On Monday 22 September 2014 04:24:21 Dmitrii Volosnykh wrote: > Threads and QObjects > tutorial > > says: > > Note that for QObjects that are created before QApplication, > > QObject::thread() returns zero. This means that the main thread will

[Interest] Event handling for QObjects created before QApplication

2014-09-21 Thread Dmitrii Volosnykh
Threads and QObjects tutorial says: > Note that for QObjects that are created before QApplication, > QObject::thread() returns zero. This means that the main thread will only > handle posted events for these objects; other event processing is n