Re: [Interest] Using QNAM from threads

2014-01-30 Thread Konrad Rosenbaum
On Thursday, Thursday 30 January 2014 at 10:50, Philipp Kursawe wrote: > So having multiple QNAM in an app is not > really an issue? Correct, you can have as many QNAM in as many threads as you like (each QNAM limited to one thread of course). The only thing you have to be aware of is that each

Re: [Interest] Using QNAM from threads

2014-01-30 Thread Philipp Kursawe
In QML you can provide a QNAM factory. This is supposed to return a new QNAM for the calling thread. So having multiple QNAM in an app is not really an issue? On Thu, Jan 30, 2014 at 3:33 AM, Thiago Macieira wrote: > On quarta-feira, 29 de janeiro de 2014 21:45:47, phil.kursawe@gmail.comwrote: >

Re: [Interest] Using QNAM from threads

2014-01-29 Thread Thiago Macieira
On quarta-feira, 29 de janeiro de 2014 21:45:47, phil.kurs...@gmail.com wrote: > I have a sync thread that needs to read from a database and sends data to a > server. The server response can be very large. The sync thread should > process them. I somehow fail to seem how I could decouple the backg

Re: [Interest] Using QNAM from threads

2014-01-29 Thread phil.kursawe
My scenario is this: I have a sync thread that needs to read from a database and sends data to a server. The server response can be very large. The sync thread should process them. I somehow fail to seem how I could decouple the background thread from the network stuff. Von: Konrad Rose

Re: [Interest] Using QNAM from threads

2014-01-29 Thread Thiago Macieira
On quarta-feira, 29 de janeiro de 2014 18:24:10, Konrad Rosenbaum wrote: > > But it seems to be impossible to connect a slot from a thread to a signal > > of the QNAM created QNetworkReply object. > > This should not be a problem. You can connect signals and slots across > thread boundaries witho

Re: [Interest] Using QNAM from threads

2014-01-29 Thread Konrad Rosenbaum
On Wednesday, Wednesday 29 January 2014 at 16:27, Philipp Kursawe wrote: > I have the following problem. I want to have only one QNAM in the (heavily > plugin based) app. > > So I create one QNAM in the main thread when the app starts and assign it > to the qApp->setProperty("qnam"). > > Now I ha

[Interest] Using QNAM from threads

2014-01-29 Thread Philipp Kursawe
I have the following problem. I want to have only one QNAM in the (heavily plugin based) app. So I create one QNAM in the main thread when the app starts and assign it to the qApp->setProperty("qnam"). Now I have several threads that can run in the background and once in a while need network acce