<?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[Problem about QHistoryState]]></title><description><![CDATA[<p dir="auto">@ QHistoryState *s1h = new QHistoryState(s1);</p>
<pre><code>QState *s3 = new QState();
s3-&gt;assignProperty(label, "text", "In s3");
QMessageBox *mbox = new QMessageBox(mainWindow);
mbox-&gt;addButton(QMessageBox::Ok);
mbox-&gt;setText("Interrupted!");
mbox-&gt;setIcon(QMessageBox::Information);
QObject::connect(s3, SIGNAL(entered()), mbox, SLOT(exec&amp;#40;&amp;#41;));
s3-&gt;addTransition(s1h);
machine.addState(s3);

s1-&gt;addTransition(interruptButton, SIGNAL(clicked()), s3);@
</code></pre>
<p dir="auto">//------------</p>
<p dir="auto">this snippet from Qt document about QHistoryState</p>
<p dir="auto">i wonder to know one of statements : s3-&gt;addTransition(s1h);</p>
<p dir="auto">how the s3 state transition to s1h (QHistoryState) without signal or event,<br />
it should be some thing like that: s3-&gt;addTransition( button, SIGNAL(clicked(), s1h) );</p>
]]></description><link>https://forum.qt.io/topic/48363/problem-about-qhistorystate</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 05:31:58 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/48363.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 20 Nov 2014 12:19:31 GMT</pubDate><ttl>60</ttl></channel></rss>