[Interest] [QQuickView] deadlock on exit

Thiago Macieira thiago.macieira at intel.com
Wed Jan 8 16:56:04 CET 2014


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 manually from the application.
> > 
> > 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 loop. or am i missing
> something obvious?

Find a way to use exec() anyway. Qt wants exec(). You must make that thread 
use it: either by making the application use Qt's mainloop or by moving your 
code to a thread.

At the very least, let us know if this problem happens with exec(). If it 
does, then we potentially have a problem that we should fix.

If it doesn't happen with exec(), then we'll conclude it's the lack of using 
exec() that is the problem and will probably do nothing.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140108/a7afb967/attachment.sig>


More information about the Interest mailing list