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

2015-08-19 Thread Celal SAVUR
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,

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

2015-08-19 Thread Thiago Macieira
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

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

2015-08-18 Thread Celal SAVUR
Hello everyone, I am keep getting this warning. Although I am not using thread. Do you have any idea? QObject: Cannot create children for a parent that is in a different thread. (Parent is QHeaderView(0x1fee070), parent's thread is QThread(0x81dc70), current thread is QThread(0x7fff88000b00)

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

2015-08-18 Thread Thiago Macieira
On Tuesday 18 August 2015 16:33:39 Celal SAVUR wrote: Hello everyone, I am keep getting this warning. Although I am not using thread. Do you have any idea? QObject: Cannot create children for a parent that is in a different thread. I think you are using threads. Please run your

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

2015-08-18 Thread Celal SAVUR
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

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

2015-08-18 Thread Carel Combrink
Greetings, I also had a similar issue once using an external library. My solution was to let the callback emit a signal to a slot in the object using a queued connection, and in the slot I did the actual processing of the data. I buffered the data in the callback before emitting the signal, but

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

2015-08-18 Thread Thiago Macieira
On Tuesday 18 August 2015 14:23:05 Thiago Macieira wrote: On Tuesday 18 August 2015 16:33:39 Celal SAVUR wrote: Hello everyone, I am keep getting this warning. Although I am not using thread. Do you have any idea? QObject: Cannot create children for a parent that is in a different