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? By the way, my application does not crash so I don't have backtrace. Thank you in advance. Celal SAVUR On Tue, Aug 18, 2015 at 5:30 PM, Thiago Macieira <thiago.macie...@intel.com> wrote: > 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 > > > thread. > > > > I think you are using threads. Please run your application with > > QT_FATAL_WARNINGS=1 set in the environment and pastebin the backtrace. > > I can tell from the pointer values that you have multiple threads: > > > > (Parent is QHeaderView(0x1fee070), parent's thread is > QThread(0x81dc70), > > > current thread is QThread(0x7fff88000b00) > > The low-value pointers are heap allocations from the main thread's heap > pool. > The high pointer value for the second QThread is a heap allocation from a > secondary thread's pool. > > The pointer value isn't that of the QThread object, but of the internal > QThreadData and that one is created inside each thread. Since we have a > pointer that comes from the heap pool of an auxiliary thread, we conclude > an > auxiliary thread was started. > > So you are using threads. > > -- > Thiago Macieira - thiago.macieira (AT) intel.com > Software Architect - Intel Open Source Technology Center > > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest >
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest