<div dir="ltr"><div><div><div><div>I would say change your approach little bit:<br><br></div>1. Create only 3 instance of QWebView<br></div>2. Whenever QTimer shots change content of QWebView and show them.<br></div>3. After they are finished displaying content hide them.<br>
</div>4. repeat step 2 and 3<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Dec 12, 2013 at 1:57 PM, Jason Kretzer <span dir="ltr"><<a href="mailto:Jason@gocodigo.com" target="_blank">Jason@gocodigo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal">Good Morning!<u></u><u></u></p><p class="MsoNormal">
<u></u> <u></u></p><p class="MsoNormal">This is more a general question about the behavior of QTimer followed by a more specific instance of the question.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">
What can make a QTimer not timeout()?  In a general sense, what can make it miss its firing?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">That was the general question.  My specific situation:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I display 3 QWebViews.  They are to be displayed on different parts of a screen for 20 seconds.  The 20 seconds is arbitrary, they could have different durations.  I have a QTimer that fires every second.  During any given second any of the three QWebViews can be triggered to start to display.  During each timeout of the QTimer, a slot is called which does the following<u></u><u></u></p>
<p class="MsoNormal">{<u></u><u></u></p><p class="MsoNormal">ALL content(html) that is supposed to start during this second are pulled from a QMultiMap.  There can be several – up to 3.<u></u><u></u></p><p class="MsoNormal">
A for loop is used to iterate over them and show them as below.<u></u><u></u></p><p class="MsoNormal">They are loaded into a QWebView, geometry is set on the QWebView.<u></u><u></u></p><p class="MsoNormal">QWebView is shown<u></u><u></u></p>
<p class="MsoNormal">A SingleShot timer is set up to deleteLater the QWebView after the duration has expired.<u></u><u></u></p><p class="MsoNormal">}<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">
In the case where durations for the content are all the same – lets say 20seconds – the QWebViews are basically synched up where they all start and stop on the same second.  Then the second right after they stop, they all three start up again.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Here is where the weirdness starts:  exactly every 1 minute, the QTimer which is supposed to fire every 1 second stops firing for 20-22seconds.  At the beginning of that time, the three QWebViews finish their previous time and leave as expected.  Then, nothing for 20-22 seconds.  The screen where they are supposed to be is blank.  I put qDebugs in the firing slot so I could see when it was being called but nothing.  I don’t see qDebug messages from anywhere else either during that time.  Like clockwork though, after the 20-22seconds of nothing, the QTimer starts firing again and repeats.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">So, generally, what can keep a QTimer from firing like that?  I don’t have any processes that run every 1 minute like that.  Also, I am asking the QTimer to fire every 1 second – it is not like I am trying to get 10ms precision here. <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">If it makes any difference, this is a win7 pro OS.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Ideas?  I was intentionally a bit vague above as I am just asking for things to look for so that I can discover the answer on my own instead of just being given the answer.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks!<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">-Jason<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">
<b><i><span style="font-size:13.0pt;font-family:Ubuntu;color:#92d050">- - - - - - - - - - - - - - - - - - - - - - -<u></u><u></u></span></i></b></p><p class="MsoNormal"><b><i><span style="font-size:13.0pt;font-family:Ubuntu;color:#7f7f7f">Jason R. </span></i></b><b><i><span style="font-size:13.0pt;font-family:Ubuntu;color:#92d050">Kretzer<u></u><u></u></span></i></b></p>
<p class="MsoNormal"><b><i><span style="font-size:10.0pt;font-family:Ubuntu;color:#262626"><u></u> <u></u></span></i></b></p><p class="MsoNormal"><b><i><span style="font-size:10.0pt;font-family:Ubuntu;color:#262626">Application Developer<u></u><u></u></span></i></b></p>
<p class="MsoNormal"><i><span style="font-size:10.0pt;font-family:Ubuntu;color:#7f7f7f">Google # 606-887-9011<u></u><u></u></span></i></p><p class="MsoNormal"><i><span style="font-size:10.0pt;font-family:Ubuntu;color:#7f7f7f">Cell # 606-792-0079<u></u><u></u></span></i></p>
<p class="MsoNormal"><a href="mailto:Jason@gocodigo.com" target="_blank"><i><span style="font-size:10.0pt;font-family:Ubuntu;color:blue">Jason@gocodigo.com</span></i></a><b><i><span style="font-size:10.0pt;font-family:Ubuntu;color:#7f7f7f"> <u></u><u></u></span></i></b></p>
<p class="MsoNormal"><b><i><span style="font-size:10.0pt;font-family:Ubuntu;color:#7f7f7f"><u></u> <u></u></span></i></b></p><p class="MsoNormal"><b><i><span style="font-size:10.0pt;font-family:Ubuntu;color:#7f7f7f">“quidquid latine dictum sit altum videtur”<u></u><u></u></span></i></b></p>
<p class="MsoNormal"><b><i><span style="font-size:10.0pt;font-family:Ubuntu;color:#7f7f7f"><u></u> <u></u></span></i></b></p><p class="MsoNormal"><img alt="Logo_EmailSig" border="0" width="192" height="76"><i><span style="font-size:10.0pt;font-family:Ubuntu;color:#7f7f7f"><u></u><u></u></span></i></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div><br>_______________________________________________<br>
Interest mailing list<br>
<a href="mailto:Interest@qt-project.org">Interest@qt-project.org</a><br>
<a href="http://lists.qt-project.org/mailman/listinfo/interest" target="_blank">http://lists.qt-project.org/mailman/listinfo/interest</a><br>
<br></blockquote></div><br></div>