<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Unregistered timer problem]]></title><description><![CDATA[<p dir="auto">hi.. i got an error like this<br />
Application asked to unregister timer 0x2000003 which is not registered in this thread. Fix application.<br />
every thing exicuted fine but in command line it shows the message like this can any one help me what the reasons for getting these errors</p>
]]></description><link>https://forum.qt.io/topic/9400/unregistered-timer-problem</link><generator>RSS for Node</generator><lastBuildDate>Wed, 09 Sep 2026 15:17:59 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/9400.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 12 Sep 2011 04:24:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Unregistered timer problem on Tue, 13 Sep 2011 06:32:52 GMT]]></title><description><![CDATA[<p dir="auto">now only i saw same error thread in qtforum also in that one i found it is the problem in 4.7.3...it will be resolved in 4.8 when released...</p>
]]></description><link>https://forum.qt.io/post/108938</link><guid isPermaLink="true">https://forum.qt.io/post/108938</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 13 Sep 2011 06:32:52 GMT</pubDate></item><item><title><![CDATA[Reply to Unregistered timer problem on Tue, 13 Sep 2011 06:19:36 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="phani448" date="1315894092"]i resolved this error ..thanks for help<br />
[/quote]</p>
<p dir="auto">Thank's for telling us the cause and solution :-)</p>
]]></description><link>https://forum.qt.io/post/108933</link><guid isPermaLink="true">https://forum.qt.io/post/108933</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 13 Sep 2011 06:19:36 GMT</pubDate></item><item><title><![CDATA[Reply to Unregistered timer problem on Tue, 13 Sep 2011 06:19:06 GMT]]></title><description><![CDATA[<p dir="auto">No, you didn't.<br />
[quote author="Andre" date="1315826763"]... at a minimum:</p>
<ul>
<li>Well and consistently indented</li>
<li>No overly long lines</li>
<li>Productive use of blank lines between code sections (as opposed to a blank line between each of your source lines)<br />
[/quote]</li>
</ul>
]]></description><link>https://forum.qt.io/post/108934</link><guid isPermaLink="true">https://forum.qt.io/post/108934</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 13 Sep 2011 06:19:06 GMT</pubDate></item><item><title><![CDATA[Reply to Unregistered timer problem on Tue, 13 Sep 2011 06:08:12 GMT]]></title><description><![CDATA[<p dir="auto">i resolved this error ..thanks for help</p>
]]></description><link>https://forum.qt.io/post/108935</link><guid isPermaLink="true">https://forum.qt.io/post/108935</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 13 Sep 2011 06:08:12 GMT</pubDate></item><item><title><![CDATA[Reply to Unregistered timer problem on Tue, 13 Sep 2011 05:57:58 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="phani448" date="1315885980"]i edited and updated the code see timer problem and also button scaling is possible with this code or not...[/quote]</p>
<p dir="auto">That code is still unreadable - it's a total mess of wildly indented lines. You will most likely not get any answers.</p>
]]></description><link>https://forum.qt.io/post/108930</link><guid isPermaLink="true">https://forum.qt.io/post/108930</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 13 Sep 2011 05:57:58 GMT</pubDate></item><item><title><![CDATA[Reply to Unregistered timer problem on Tue, 13 Sep 2011 03:53:00 GMT]]></title><description><![CDATA[<p dir="auto">i edited and updated the code see timer problem and also button scaling is possible with this code or not...</p>
]]></description><link>https://forum.qt.io/post/108918</link><guid isPermaLink="true">https://forum.qt.io/post/108918</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 13 Sep 2011 03:53:00 GMT</pubDate></item><item><title><![CDATA[Reply to Unregistered timer problem on Mon, 12 Sep 2011 11:26:03 GMT]]></title><description><![CDATA[<p dir="auto">I have already added code tags around your code, but it is still unreadable. Please format your code properly so it is easy to read (use the Edit option next to your posting instead of creating a new posting please) if you want to invite other forum uses to actually read your code. With proper formatting, I mean at a minimum:</p>
<ul>
<li>Well and consistently indented</li>
<li>No overly long lines</li>
<li>Productive use of blank lines between code sections (as opposed to a blank line between each of your source lines)</li>
</ul>
]]></description><link>https://forum.qt.io/post/108847</link><guid isPermaLink="true">https://forum.qt.io/post/108847</guid><dc:creator><![CDATA[andre]]></dc:creator><pubDate>Mon, 12 Sep 2011 11:26:03 GMT</pubDate></item><item><title><![CDATA[Reply to Unregistered timer problem on Mon, 12 Sep 2011 11:20:42 GMT]]></title><description><![CDATA[<p dir="auto">@<br />
void MainWindow::openFile();<br />
{<br />
QString fileName =  QFileDialog::getOpenFileName( this, tr("Open File"), "./test.dat", tr("Dat Files (*.dat") );</p>
<p dir="auto">createFromFile( fileName);<br />
}</p>
<p dir="auto">// Clear Scene (All)<br />
void MainWindow::clearAll()<br />
{<br />
scene-&gt;clear();</p>
<p dir="auto">// delete pushbuttons for dockwidget layout</p>
<p dir="auto">foreach( QObject *obj, dockWidget-&gt;widget()-&gt;children() )</p>
<p dir="auto">{</p>
<p dir="auto">if( obj-&gt;isWidgetType() ){</p>
<p dir="auto">delete obj;<br />
}<br />
}<br />
// delete spaceritem from dockwidget layout</p>
<p dir="auto">QLayoutItem *child;</p>
<p dir="auto">while ((child = dockWidget-&gt;widget()-&gt;layout()-&gt;takeAt(0)) != 0)<br />
{<br />
delete child;<br />
}<br />
// clear map</p>
<p dir="auto">map.clear();<br />
}</p>
<p dir="auto">// Called from Open File slot</p>
<p dir="auto">void MainWindow::createFromFile( const QString &amp;fileName );</p>
<p dir="auto">{</p>
<p dir="auto">if( fileName.isEmpty());<br />
return;<br />
// clean up</p>
<p dir="auto">clearAll();</p>
<p dir="auto">// Open file for reading</p>
<p dir="auto">// create layers</p>
<p dir="auto">QFile file( fileName );</p>
<p dir="auto">if( file.open( QIODevice::ReadOnly ))<br />
{</p>
<pre><code>QTextStream textStream( &amp;file );

 while( !textStream.atEnd() ){

     QString str = textStream.readLine();
    
if( str.startsWith( "layer" ) )
</code></pre>
<p dir="auto">{</p>
<p dir="auto">// create layer item for adding to scene</p>
<pre><code> // and add to map for pb resolve
</code></pre>
<p dir="auto">QGraphicsRectItem *pitem = new QGraphicsRectItem(0,0,0,0);</p>
<p dir="auto">map[ str ] = pitem;</p>
<p dir="auto">// create push button for group item</p>
<pre><code>QPushButton *pb = new QPushButton( str );

     pb-&gt;setObjectName( str );

   connect( pb, SIGNAL( clicked() ), this, SLOT( pushButtonToggle() ));

      dockWidget-&gt;widget()-&gt;layout()-&gt;addWidget( pb );
</code></pre>
<p dir="auto">// create children (group)</p>
<pre><code>      while( true ) {

       // parse rect lines (x x,y,w,h ) from file

        ..........

    new QGraphicsRectItem( p4, p3, p2, p1, pitem );
</code></pre>
<p dir="auto">}</p>
<p dir="auto">// add group item to scene</p>
<pre><code>   scene-&gt;addItem( pitem );
</code></pre>
<p dir="auto">}<br />
}</p>
<p dir="auto">// cosmetic for button layout</p>
<p dir="auto">dockWidget-&gt;widget()-&gt;layout()-&gt;addItem( new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding) );<br />
// clean up</p>
<p dir="auto">file. close();</p>
<p dir="auto">}<br />
}</p>
<p dir="auto">// Handle action for push button created for group items</p>
<p dir="auto">void MainWindow::pushButtonToggle()<br />
{</p>
<p dir="auto">// Ensure sender is pushbutton for map reference</p>
<p dir="auto">QPushButton *pb = qobject_cast&lt;QPushButton *&gt;(sender());</p>
<p dir="auto">if( pb ){</p>
<p dir="auto">QGraphicsItem *item = map[ pb-&gt;objectName() ];</p>
<p dir="auto">if( item ){</p>
<pre><code>item-&gt;setVisible( !item-&gt;isVisible() );
</code></pre>
<p dir="auto">}</p>
<p dir="auto">}</p>
<p dir="auto">}<br />
@</p>
<p dir="auto">it is the main code tried this is the code for reading rect items from a file and setting into scene for some group of rect items i have one button</p>
<p dir="auto"><em>Edit: Please use the @ tags around code sections to format your code; Andre</em></p>
<p dir="auto"><em>[EDIT: Missgin starting @-tag for Code. <em>format your code, it's still unreadable</em>, Volker]</em></p>
]]></description><link>https://forum.qt.io/post/108845</link><guid isPermaLink="true">https://forum.qt.io/post/108845</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 12 Sep 2011 11:20:42 GMT</pubDate></item><item><title><![CDATA[Reply to Unregistered timer problem on Mon, 12 Sep 2011 11:11:30 GMT]]></title><description><![CDATA[<p dir="auto">You will have to show more than that to receive usable help. Try to create a small, self-contained example project that is compilable by us here that demonstrates the problem, and just the problem. 200 lines maximum.</p>
<p dir="auto">On that last issue: you already have a "topic open":<a href="http://developer.qt.nokia.com/forums/viewthread/9638/" target="_blank" rel="noopener noreferrer nofollow ugc">http://developer.qt.nokia.com/forums/viewthread/9638/</a> on that. One issue per topic please!</p>
]]></description><link>https://forum.qt.io/post/108841</link><guid isPermaLink="true">https://forum.qt.io/post/108841</guid><dc:creator><![CDATA[andre]]></dc:creator><pubDate>Mon, 12 Sep 2011 11:11:30 GMT</pubDate></item><item><title><![CDATA[Reply to Unregistered timer problem on Mon, 12 Sep 2011 10:20:55 GMT]]></title><description><![CDATA[<p dir="auto">dockWidget-&gt;widget()-&gt;layout()-&gt;addWidget( pb );<br />
sorry i am un able to send the totel code i have a graphicsview as centeral widget in left side dock area i have the buttons pb is the push button here this is the line creating post error...and also could u please tell is there any why to scale or boomup a button when it it pressed.........</p>
]]></description><link>https://forum.qt.io/post/108829</link><guid isPermaLink="true">https://forum.qt.io/post/108829</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 12 Sep 2011 10:20:55 GMT</pubDate></item><item><title><![CDATA[Reply to Unregistered timer problem on Mon, 12 Sep 2011 10:03:25 GMT]]></title><description><![CDATA[<p dir="auto">Without having a chance to see your code, I can not say anything more then what I already said.<br />
You could try ton reduce your code to a minimum example, that shows the behavior.</p>
]]></description><link>https://forum.qt.io/post/108827</link><guid isPermaLink="true">https://forum.qt.io/post/108827</guid><dc:creator><![CDATA[giesbert]]></dc:creator><pubDate>Mon, 12 Sep 2011 10:03:25 GMT</pubDate></item><item><title><![CDATA[Reply to Unregistered timer problem on Mon, 12 Sep 2011 09:53:39 GMT]]></title><description><![CDATA[<p dir="auto">i used Qdockwidget is that one be the problem? but  if the Dock is Docked the message don't appear</p>
]]></description><link>https://forum.qt.io/post/108826</link><guid isPermaLink="true">https://forum.qt.io/post/108826</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 12 Sep 2011 09:53:39 GMT</pubDate></item><item><title><![CDATA[Reply to Unregistered timer problem on Mon, 12 Sep 2011 05:09:59 GMT]]></title><description><![CDATA[<p dir="auto">Looks like you call QTimer operatins on the stame object (start, stop, ...) from different threads.</p>
]]></description><link>https://forum.qt.io/post/108779</link><guid isPermaLink="true">https://forum.qt.io/post/108779</guid><dc:creator><![CDATA[giesbert]]></dc:creator><pubDate>Mon, 12 Sep 2011 05:09:59 GMT</pubDate></item></channel></rss>