<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
it can't "doesn't help much". you initializing thread wrong.<br>
<br>
simple threading way is:<br>
<br>
<tt>MyXmlParser *parser = new MyXmlParser(xmlDocument);</tt><tt><br>
</tt><tt>QThread *thread = new QThread(parser);</tt><tt><br>
</tt><tt>parser->moveToThread(thread);</tt><tt><br>
</tt><tt>QObject::connect(thread, SIGNAL(started()), parser,
SLOT(parse()));</tt><tt><br>
</tt><tt>QObject::connect(parser, SIGNAL(parseComplete(QVariantMap)</tt><tt>),
this, SLOT(onParseComplete(QVariantMap)));</tt><tt><br>
</tt><tt>thread->start();</tt><br>
<br>
<div class="moz-cite-prefix">28.05.2014 03:24, Krisztian Olah пишет:<br>
</div>
<blockquote
cite="mid:CACX4ZqYS70fo9UezotDcgGBrvS=h-81gqrJGxVxaFiXPDd04dw@mail.gmail.com"
type="cite">
<div dir="ltr"> Hi list,
<div style=""> I have a rather large xml file to parse and it
causes the UI to freeze, I assingned the parser to a different
thread, but it doesn't help much. According to the Qt
documentation QThread::setPriority() doesn't work on Linux, is
there some kind of workaround that could be used?</div>
<div style=""><br>
</div>
<div style="">Thanks</div>
<div style="">Kris</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to <a class="moz-txt-link-abbreviated" href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a></pre>
</blockquote>
<br>
</body>
</html>