Re: [Development] Trigger Qt event loop from external message loop

2013-12-20 Thread Roland Winklmeier
Unfortunately Mac is (additional to Win and Linux) a target OS, so if this is not working on that I have to find another way to do it. I found QMacNativeWidget which looks promising and looking into its implementation I'm wondering how Qt's event loop is triggered? With Qt4 I also used QWinWidget

Re: [Development] Trigger Qt event loop from external message loop

2013-12-19 Thread Sze Howe Koh
On 20 December 2013 04:52, Kuba Ober wrote: > Is this supported on all platforms now? IIRC it did not work OS X last time I > tried, but yes, > it did work great on Windows. > > — Kuba The Cocoa framework mandates that all GUI-related operations must be done in the first thread in a process [1].

Re: [Development] Trigger Qt event loop from external message loop

2013-12-19 Thread Kuba Ober
Is this supported on all platforms now? IIRC it did not work OS X last time I tried, but yes, it did work great on Windows. — Kuba On Dec 14, 2013, at 3:25 PM, Roland Winklmeier wrote: > Thanks very much Olivier and Thiago! > That works brilliant. > > No idea why I forgot that QThread must

Re: [Development] Trigger Qt event loop from external message loop

2013-12-14 Thread Roland Winklmeier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks very much Olivier and Thiago! That works brilliant. No idea why I forgot that QThread must not be used. But its of course obvious. I made a quick setup with native threads (std::thread is unfortunately not supported by VC2010) and it works perf

Re: [Development] Trigger Qt event loop from external message loop

2013-12-14 Thread Thiago Macieira
On sábado, 14 de dezembro de 2013 12:42:32, Roland Winklmeier wrote: > n qthread_win.cpp > QThreadPrivate::start -> > void QThreadPrivate::createEventDispatcher(QThreadData *data) > { > QEventDispatcherWin32 *theEventDispatcher = new QEventDispatcherWin32; > data->eventDispatcher.storeRelea

Re: [Development] Trigger Qt event loop from external message loop

2013-12-14 Thread Olivier Goffart
On Saturday 14 December 2013 00:45:20 Roland Winklmeier wrote: > Hi there, > > I'm working on an application using Qt5 for its window framework. The > requirement for this application is to run standalone and as a plugin > for a native application. > While the case standalone application is easy,

Re: [Development] Trigger Qt event loop from external message loop

2013-12-14 Thread Roland Winklmeier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 14.12.2013 02:16, schrieb Thiago Macieira: > On sábado, 14 de dezembro de 2013 00:45:20, Roland Winklmeier > wrote: >> Since I cannot run Qt's event loop with QApplication::exec() - I >> dont want the plugin to block the parent application - I try

Re: [Development] Trigger Qt event loop from external message loop

2013-12-13 Thread Thiago Macieira
On sábado, 14 de dezembro de 2013 00:45:20, Roland Winklmeier wrote: > Since I > cannot run Qt's event loop with QApplication::exec() - I dont want the > plugin to block the parent application - I try to trigger the event loop > externally. You have to do that. Use another thread then. All of you

[Development] Trigger Qt event loop from external message loop

2013-12-13 Thread Roland Winklmeier
Hi there, I'm working on an application using Qt5 for its window framework. The requirement for this application is to run standalone and as a plugin for a native application. While the case standalone application is easy, I'm struggling a bit with the plugin part. I have the following in mind: T