[Interest] QObject: Cannot create children for a parent that is in a different thread.

Celal SAVUR c.savur at gmail.com
Wed Aug 19 22:19:08 CEST 2015


Hello,

I was emitting signal but I also had a code block  was doing processing. So
I emitted another signal and process data in the slot. And It works fine.

Thank you *Thiago* regarding QT_FATAL_WARNINGS flag. I liked it. I did not
know this flag before.









Celal SAVUR



On Wed, Aug 19, 2015 at 3:21 AM, Thiago Macieira <thiago.macieira at intel.com>
wrote:

> On Tuesday 18 August 2015 18:40:53 Celal SAVUR wrote:
> > Hello Thiago,
> >
> > Actually I just find out that the C function which I am calling in Qt, is
> > creating a thread. I do not have any control over this thread. The
> library
> > I am using that have callback interface and whenever data available it
> > calls my callback method in Qt.
> >
> > So, in order to solve this problem, what should I do?
>
> Sync back to the main thread by posting events or emitting signals from
> your
> callback.
>
> > By the way, my application does not crash so I don't have backtrace.
>
> That's what the QT_FATAL_WARNINGS=1 was for.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel Open Source Technology Center
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150819/ee860faa/attachment.html>


More information about the Interest mailing list