Re: [Interest] [QQuickView] deadlock on exit

2014-01-12 Thread Tim Blechmann
>> which causes an assertion failure in QCoreApplication::arguments() [2]. >> but if using QApplication without exec() is unsupported, maybe this >> could be either fixed or removed or declared as unsupported? > > exec() is basically a loop around calling processEvents(). The question is > what t

Re: [Interest] [QQuickView] deadlock on exit

2014-01-10 Thread Thiago Macieira
On sexta-feira, 10 de janeiro de 2014 10:15:23, Tim Blechmann wrote: > > exec() is basically a loop around calling processEvents(). The question > > is > > what the loop control variable is. If you get the control wrong, your > > application won't exit at the right time. > > is there any documen

Re: [Interest] [QQuickView] deadlock on exit

2014-01-10 Thread Tim Blechmann
>> which causes an assertion failure in QCoreApplication::arguments() [2]. >> but if using QApplication without exec() is unsupported, maybe this >> could be either fixed or removed or declared as unsupported? > > exec() is basically a loop around calling processEvents(). The question is > what t

Re: [Interest] [QQuickView] deadlock on exit

2014-01-09 Thread Thiago Macieira
On quinta-feira, 9 de janeiro de 2014 12:00:09, Tim Blechmann wrote: > which causes an assertion failure in QCoreApplication::arguments() [2]. > but if using QApplication without exec() is unsupported, maybe this > could be either fixed or removed or declared as unsupported? exec() is basically a

Re: [Interest] [QQuickView] deadlock on exit

2014-01-09 Thread Tim Blechmann
>> not sure, if i am doing something completely wrong here. >> i'm using a QMainWindow with a QQuickView as central widget. the >> application does not make use of QApplication::exec, but i'm polling the >> event loop manually from the application. > > You're doing something wrong. Use exec(). fw

Re: [Interest] [QQuickView] deadlock on exit

2014-01-08 Thread Sze Howe Koh
On 9 January 2014 02:13, Thiago Macieira wrote: > On quarta-feira, 8 de janeiro de 2014 18:29:06, Tim Blechmann wrote: >> > If the plugin is not using Qt, there's no threading issue. Qt requires its >> > GUI to be run from one thread only, but it does not make any requirements >> > on GUIs written

Re: [Interest] [QQuickView] deadlock on exit

2014-01-08 Thread Thiago Macieira
On quarta-feira, 8 de janeiro de 2014 18:29:06, Tim Blechmann wrote: > >> i will see what i can do ... what do i need to do in order to run exec() > >> from a thread other than the main thread? afaict it wants to be called > >> from the main thread, so simply creating a std::thread to run > >> qApp

Re: [Interest] [QQuickView] deadlock on exit

2014-01-08 Thread Tim Blechmann
>> i will see what i can do ... what do i need to do in order to run exec() >> from a thread other than the main thread? afaict it wants to be called >> from the main thread, so simply creating a std::thread to run >> qApp->exec() does not work. > > Start your thread using non-Qt means and make su

Re: [Interest] [QQuickView] deadlock on exit

2014-01-08 Thread Thiago Macieira
On quarta-feira, 8 de janeiro de 2014 17:44:21, Tim Blechmann wrote: > i will see what i can do ... what do i need to do in order to run exec() > from a thread other than the main thread? afaict it wants to be called > from the main thread, so simply creating a std::thread to run > qApp->exec() doe

Re: [Interest] [QQuickView] deadlock on exit

2014-01-08 Thread Tim Blechmann
not sure, if i am doing something completely wrong here. i'm using a QMainWindow with a QQuickView as central widget. the application does not make use of QApplication::exec, but i'm polling the event loop manually from the application. >>> >>> You're doing something wrong. Use

Re: [Interest] [QQuickView] deadlock on exit

2014-01-08 Thread Konrad Rosenbaum
On Wednesday 08 January 2014, Tim Blechmann wrote: > > You're doing something wrong. Use exec(). > > afaict this is not possible when integrating a Qt event loop into the > event loop of an existing application or when using a Qt from a plugin > which is simply not allowed to have its own event lo

Re: [Interest] [QQuickView] deadlock on exit

2014-01-08 Thread Thiago Macieira
On quarta-feira, 8 de janeiro de 2014 16:36:16, Tim Blechmann wrote: > >> not sure, if i am doing something completely wrong here. > >> i'm using a QMainWindow with a QQuickView as central widget. the > >> application does not make use of QApplication::exec, but i'm polling the > >> event loop manu

Re: [Interest] [QQuickView] deadlock on exit

2014-01-08 Thread Tim Blechmann
>> not sure, if i am doing something completely wrong here. >> i'm using a QMainWindow with a QQuickView as central widget. the >> application does not make use of QApplication::exec, but i'm polling the >> event loop manually from the application. > > You're doing something wrong. Use exec(). af

Re: [Interest] [QQuickView] deadlock on exit

2014-01-08 Thread Thiago Macieira
On quarta-feira, 8 de janeiro de 2014 15:08:31, Tim Blechmann wrote: > not sure, if i am doing something completely wrong here. > i'm using a QMainWindow with a QQuickView as central widget. the > application does not make use of QApplication::exec, but i'm polling the > event loop manually from th

[Interest] [QQuickView] deadlock on exit

2014-01-08 Thread Tim Blechmann
hi, not sure, if i am doing something completely wrong here. i'm using a QMainWindow with a QQuickView as central widget. the application does not make use of QApplication::exec, but i'm polling the event loop manually from the application. however the application deadlock on exit, when i'm delet