Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-updates > by-pkgid > 768f7d9f703884aa2562bf0a651086df > files > 419

qtbase5-doc-5.9.4-1.1.mga6.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qhistorystate.cpp -->
  <title>QHistoryState Class | Qt Core 5.9</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.9</td><td ><a href="qtcore-index.html">Qt Core</a></td><td ><a href="qtcore-module.html">C++ Classes</a></td><td >QHistoryState</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.9.4 Reference Documentation</td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#reimplemented-protected-functions">Reimplemented Protected Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QHistoryState Class</h1>
<!-- $$$QHistoryState-brief -->
<p>The <a href="qhistorystate.html">QHistoryState</a> class provides a means of returning to a previously active substate. <a href="#details">More...</a></p>
<!-- @@@QHistoryState -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QHistoryState&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += core</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign">  Qt 4.6</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qabstractstate.html">QAbstractState</a></td></tr></table></div><ul>
<li><a href="qhistorystate-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2 id="public-types">Public Types</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qhistorystate.html#HistoryType-enum">HistoryType</a></b> { ShallowHistory, DeepHistory }</td></tr>
</table></div>
<a name="properties"></a>
<h2 id="properties">Properties</h2>
<ul>
<li class="fn"><b><a href="qhistorystate.html#defaultState-prop">defaultState</a></b> : QAbstractState *</li>
<li class="fn"><b><a href="qhistorystate.html#defaultTransition-prop">defaultTransition</a></b> : QAbstractTransition *</li>
<li class="fn"><b><a href="qhistorystate.html#historyType-prop">historyType</a></b> : HistoryType</li>
</ul>
<ul>
<li class="fn">1 property inherited from <a href="qabstractstate.html#properties">QAbstractState</a></li>
<li class="fn">1 property inherited from <a href="qobject.html#properties">QObject</a></li>
</ul>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qhistorystate.html#QHistoryState">QHistoryState</a></b>(QState *<i>parent</i> = Q_NULLPTR)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qhistorystate.html#QHistoryState-1">QHistoryState</a></b>(HistoryType <i>type</i>, QState *<i>parent</i> = Q_NULLPTR)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qhistorystate.html#dtor.QHistoryState">~QHistoryState</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QAbstractState *</td><td class="memItemRight bottomAlign"><b><a href="qhistorystate.html#defaultState">defaultState</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QAbstractTransition *</td><td class="memItemRight bottomAlign"><b><a href="qhistorystate.html#defaultTransition">defaultTransition</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> HistoryType </td><td class="memItemRight bottomAlign"><b><a href="qhistorystate.html#historyType">historyType</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qhistorystate.html#setDefaultState">setDefaultState</a></b>(QAbstractState *<i>state</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qhistorystate.html#setDefaultTransition">setDefaultTransition</a></b>(QAbstractTransition *<i>transition</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qhistorystate.html#setHistoryType">setHistoryType</a></b>(HistoryType <i>type</i>)</td></tr>
</table></div>
<ul>
<li class="fn">3 public functions inherited from <a href="qabstractstate.html#public-functions">QAbstractState</a></li>
<li class="fn">32 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
</ul>
<a name="signals"></a>
<h2 id="signals">Signals</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qhistorystate.html#defaultStateChanged">defaultStateChanged</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qhistorystate.html#defaultTransitionChanged">defaultTransitionChanged</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qhistorystate.html#historyTypeChanged">historyTypeChanged</a></b>()</td></tr>
</table></div>
<ul>
<li class="fn">3 signals inherited from <a href="qabstractstate.html#signals">QAbstractState</a></li>
<li class="fn">2 signals inherited from <a href="qobject.html#signals">QObject</a></li>
</ul>
<a name="reimplemented-protected-functions"></a>
<h2 id="reimplemented-protected-functions">Reimplemented Protected Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qhistorystate.html#event">event</a></b>(QEvent *<i>e</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qhistorystate.html#onEntry">onEntry</a></b>(QEvent *<i>event</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qhistorystate.html#onExit">onExit</a></b>(QEvent *<i>event</i>)</td></tr>
</table></div>
<ul>
<li class="fn">3 protected functions inherited from <a href="qabstractstate.html#protected-functions">QAbstractState</a></li>
<li class="fn">9 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
<li class="fn">11 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
<li class="fn">3 protected functions inherited from <a href="qabstractstate.html#protected-functions">QAbstractState</a></li>
<li class="fn">9 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
</ul>
<a name="details"></a>
<!-- $$$QHistoryState-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qhistorystate.html">QHistoryState</a> class provides a means of returning to a previously active substate.</p>
<p>A history state is a pseudo-state that represents the child state that the parent state was in the last time the parent state was exited. A transition with a history state as its target is in fact a transition to one or more other child states of the parent state. <a href="qhistorystate.html">QHistoryState</a> is part of <a href="statemachine-api.html">The State Machine Framework</a>.</p>
<p>Use the <a href="qhistorystate.html#setDefaultState">setDefaultState</a>() function to set the state that should be entered if the parent state has never been entered. Example:</p>
<pre class="cpp">

  <span class="type"><a href="qstatemachine.html">QStateMachine</a></span> machine;

  <span class="type"><a href="qstate.html">QState</a></span> <span class="operator">*</span>s1 <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qstate.html">QState</a></span>();
  <span class="type"><a href="qstate.html">QState</a></span> <span class="operator">*</span>s11 <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qstate.html">QState</a></span>(s1);
  <span class="type"><a href="qstate.html">QState</a></span> <span class="operator">*</span>s12 <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qstate.html">QState</a></span>(s1);

  <span class="type"><a href="qhistorystate.html#QHistoryState">QHistoryState</a></span> <span class="operator">*</span>s1h <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qhistorystate.html#QHistoryState">QHistoryState</a></span>(s1);
  s1h<span class="operator">-</span><span class="operator">&gt;</span>setDefaultState(s11);

  machine<span class="operator">.</span>addState(s1);

  <span class="type"><a href="qstate.html">QState</a></span> <span class="operator">*</span>s2 <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qstate.html">QState</a></span>();
  machine<span class="operator">.</span>addState(s2);

  <span class="type"><a href="../qtwidgets/qpushbutton.html">QPushButton</a></span> <span class="operator">*</span>button <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="../qtwidgets/qpushbutton.html">QPushButton</a></span>();
  <span class="comment">// Clicking the button will cause the state machine to enter the child state</span>
  <span class="comment">// that s1 was in the last time s1 was exited, or the history state's default</span>
  <span class="comment">// state if s1 has never been entered.</span>
  s1<span class="operator">-</span><span class="operator">&gt;</span>addTransition(button<span class="operator">,</span> SIGNAL(clicked())<span class="operator">,</span> s1h);

</pre>
<p>If more than one default state has to be entered, or if the transition to the default state(s) has to be acted upon, the <a href="qhistorystate.html#defaultTransition-prop">defaultTransition</a> should be set instead. Note that the eventTest() method of that transition will never be called: the selection and execution of the transition is done automatically when entering the history state.</p>
<p>By default a history state is shallow, meaning that it won't remember nested states. This can be configured through the <a href="qhistorystate.html#historyType-prop">historyType</a> property.</p>
</div>
<!-- @@@QHistoryState -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$HistoryType$$$ShallowHistory$$$DeepHistory -->
<h3 class="fn" id="HistoryType-enum"><a name="HistoryType-enum"></a>enum QHistoryState::<span class="name">HistoryType</span></h3>
<p>This enum specifies the type of history that a <a href="qhistorystate.html">QHistoryState</a> records.</p>
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code>QHistoryState::ShallowHistory</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">Only the immediate child states of the parent state are recorded. In this case a transition with the history state as its target will end up in the immediate child state that the parent was in the last time it was exited. This is the default.</td></tr>
<tr><td class="topAlign"><code>QHistoryState::DeepHistory</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">Nested states are recorded. In this case a transition with the history state as its target will end up in the most deeply nested descendant state the parent was in the last time it was exited.</td></tr>
</table></div>
<!-- @@@HistoryType -->
</div>
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$defaultState-prop$$$defaultState$$$setDefaultStateQAbstractState*$$$defaultStateChanged -->
<h3 class="fn" id="defaultState-prop"><a name="defaultState-prop"></a><span class="name">defaultState</span> : <span class="type"><a href="qabstractstate.html#QAbstractState">QAbstractState</a></span> *</h3>
<p>This property holds the default state of this history state</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QAbstractState *</td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qhistorystate.html#defaultState">defaultState</a></b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qhistorystate.html#setDefaultState">setDefaultState</a></b></span>(QAbstractState *<i>state</i>)</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qhistorystate.html#defaultStateChanged">defaultStateChanged</a></b></span>()</td><td class="memItemRight bottomAlign">[see note below]</td></tr>
</table></div>
<p><b>Note: </b>This is a private signal. It can be used in signal connections but cannot be emitted by the user.</p>
<!-- @@@defaultState -->
<!-- $$$defaultTransition-prop$$$defaultTransition$$$setDefaultTransitionQAbstractTransition*$$$defaultTransitionChanged -->
<h3 class="fn" id="defaultTransition-prop"><a name="defaultTransition-prop"></a><span class="name">defaultTransition</span> : <span class="type"><a href="qabstracttransition.html">QAbstractTransition</a></span> *</h3>
<p>This property holds the default transition of this history state</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QAbstractTransition *</td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qhistorystate.html#defaultTransition">defaultTransition</a></b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qhistorystate.html#setDefaultTransition">setDefaultTransition</a></b></span>(QAbstractTransition *<i>transition</i>)</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qhistorystate.html#defaultTransitionChanged">defaultTransitionChanged</a></b></span>()</td><td class="memItemRight bottomAlign">[see note below]</td></tr>
</table></div>
<p><b>Note: </b>This is a private signal. It can be used in signal connections but cannot be emitted by the user.</p>
<!-- @@@defaultTransition -->
<!-- $$$historyType-prop$$$historyType$$$setHistoryTypeHistoryType$$$historyTypeChanged -->
<h3 class="fn" id="historyType-prop"><a name="historyType-prop"></a><span class="name">historyType</span> : <span class="type"><a href="qhistorystate.html#HistoryType-enum">HistoryType</a></span></h3>
<p>This property holds the type of history that this history state records</p>
<p>The default value of this property is <a href="qhistorystate.html#HistoryType-enum">QHistoryState::ShallowHistory</a>.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> HistoryType </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qhistorystate.html#historyType">historyType</a></b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qhistorystate.html#setHistoryType">setHistoryType</a></b></span>(HistoryType <i>type</i>)</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qhistorystate.html#historyTypeChanged">historyTypeChanged</a></b></span>()</td><td class="memItemRight bottomAlign">[see note below]</td></tr>
</table></div>
<p><b>Note: </b>This is a private signal. It can be used in signal connections but cannot be emitted by the user.</p>
<!-- @@@historyType -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QHistoryState[overload1]$$$QHistoryStateQState* -->
<h3 class="fn" id="QHistoryState"><a name="QHistoryState"></a>QHistoryState::<span class="name">QHistoryState</span>(<span class="type"><a href="qstate.html">QState</a></span> *<i>parent</i> = Q_NULLPTR)</h3>
<p>Constructs a new shallow history state with the given <i>parent</i> state.</p>
<!-- @@@QHistoryState -->
<!-- $$$QHistoryState$$$QHistoryStateHistoryTypeQState* -->
<h3 class="fn" id="QHistoryState-1"><a name="QHistoryState-1"></a>QHistoryState::<span class="name">QHistoryState</span>(<span class="type"><a href="qhistorystate.html#HistoryType-enum">HistoryType</a></span> <i>type</i>, <span class="type"><a href="qstate.html">QState</a></span> *<i>parent</i> = Q_NULLPTR)</h3>
<p>Constructs a new history state of the given <i>type</i>, with the given <i>parent</i> state.</p>
<!-- @@@QHistoryState -->
<!-- $$$~QHistoryState[overload1]$$$~QHistoryState -->
<h3 class="fn" id="dtor.QHistoryState"><a name="dtor.QHistoryState"></a>QHistoryState::<span class="name">~QHistoryState</span>()</h3>
<p>Destroys this history state.</p>
<!-- @@@~QHistoryState -->
<!-- $$$defaultState -->
<h3 class="fn" id="defaultState"><a name="defaultState"></a><span class="type"><a href="qabstractstate.html#QAbstractState">QAbstractState</a></span> *QHistoryState::<span class="name">defaultState</span>() const</h3>
<p>Returns this history state's default state. The default state indicates the state to transition to if the parent state has never been entered before.</p>
<p><b>Note:</b> Getter function for property <a href="qhistorystate.html#defaultState-prop">defaultState</a>. </p><p><b>See also </b><a href="qhistorystate.html#setDefaultState">setDefaultState</a>().</p>
<!-- @@@defaultState -->
<!-- $$$defaultStateChanged -->
<h3 class="fn" id="defaultStateChanged"><a name="defaultStateChanged"></a><code>[signal] </code><span class="type">void</span> QHistoryState::<span class="name">defaultStateChanged</span>()</h3>
<p>This signal is emitted when the <a href="qhistorystate.html#defaultState-prop">defaultState</a> property is changed.</p>
<p>This function was introduced in  Qt 5.4.</p>
<p><b>Note: </b>This is a private signal. It can be used in signal connections but cannot be emitted by the user.</p>
<p><b>Note:</b> Notifier signal for property <a href="qhistorystate.html#defaultState-prop">defaultState</a>. </p><p><b>See also </b><a href="qhistorystate.html#defaultState-prop">QHistoryState::defaultState</a>.</p>
<!-- @@@defaultStateChanged -->
<!-- $$$defaultTransition -->
<h3 class="fn" id="defaultTransition"><a name="defaultTransition"></a><span class="type"><a href="qabstracttransition.html">QAbstractTransition</a></span> *QHistoryState::<span class="name">defaultTransition</span>() const</h3>
<p>Returns this history state's default transition. The default transition is taken when the history state has never been entered before. The target states of the default transition therefore make up the default state.</p>
<p>This function was introduced in  Qt 5.6.</p>
<p><b>Note:</b> Getter function for property <a href="qhistorystate.html#defaultTransition-prop">defaultTransition</a>. </p><p><b>See also </b><a href="qhistorystate.html#setDefaultTransition">setDefaultTransition</a>().</p>
<!-- @@@defaultTransition -->
<!-- $$$defaultTransitionChanged -->
<h3 class="fn" id="defaultTransitionChanged"><a name="defaultTransitionChanged"></a><code>[signal] </code><span class="type">void</span> QHistoryState::<span class="name">defaultTransitionChanged</span>()</h3>
<p>This signal is emitted when the <a href="qhistorystate.html#defaultTransition-prop">defaultTransition</a> property is changed.</p>
<p>This function was introduced in  Qt 5.6.</p>
<p><b>Note: </b>This is a private signal. It can be used in signal connections but cannot be emitted by the user.</p>
<p><b>Note:</b> Notifier signal for property <a href="qhistorystate.html#defaultTransition-prop">defaultTransition</a>. </p><p><b>See also </b><a href="qhistorystate.html#defaultTransition-prop">QHistoryState::defaultTransition</a>.</p>
<!-- @@@defaultTransitionChanged -->
<!-- $$$event[overload1]$$$eventQEvent* -->
<h3 class="fn" id="event"><a name="event"></a><code>[virtual protected] </code><span class="type">bool</span> QHistoryState::<span class="name">event</span>(<span class="type"><a href="qevent.html">QEvent</a></span> *<i>e</i>)</h3>
<p>Reimplemented from <a href="qobject.html#event">QObject::event</a>().</p>
<!-- @@@event -->
<!-- $$$historyType -->
<h3 class="fn" id="historyType"><a name="historyType"></a><span class="type"><a href="qhistorystate.html#HistoryType-enum">HistoryType</a></span> QHistoryState::<span class="name">historyType</span>() const</h3>
<p>Returns the type of history that this history state records.</p>
<p><b>Note:</b> Getter function for property <a href="qhistorystate.html#historyType-prop">historyType</a>. </p><p><b>See also </b><a href="qhistorystate.html#setHistoryType">setHistoryType</a>().</p>
<!-- @@@historyType -->
<!-- $$$historyTypeChanged -->
<h3 class="fn" id="historyTypeChanged"><a name="historyTypeChanged"></a><code>[signal] </code><span class="type">void</span> QHistoryState::<span class="name">historyTypeChanged</span>()</h3>
<p>This signal is emitted when the <a href="qhistorystate.html#historyType-prop">historyType</a> property is changed.</p>
<p>This function was introduced in  Qt 5.4.</p>
<p><b>Note: </b>This is a private signal. It can be used in signal connections but cannot be emitted by the user.</p>
<p><b>Note:</b> Notifier signal for property <a href="qhistorystate.html#historyType-prop">historyType</a>. </p><p><b>See also </b><a href="qhistorystate.html#historyType-prop">QHistoryState::historyType</a>.</p>
<!-- @@@historyTypeChanged -->
<!-- $$$onEntry[overload1]$$$onEntryQEvent* -->
<h3 class="fn" id="onEntry"><a name="onEntry"></a><code>[virtual protected] </code><span class="type">void</span> QHistoryState::<span class="name">onEntry</span>(<span class="type"><a href="qevent.html">QEvent</a></span> *<i>event</i>)</h3>
<p>Reimplemented from <a href="qabstractstate.html#onEntry">QAbstractState::onEntry</a>().</p>
<!-- @@@onEntry -->
<!-- $$$onExit[overload1]$$$onExitQEvent* -->
<h3 class="fn" id="onExit"><a name="onExit"></a><code>[virtual protected] </code><span class="type">void</span> QHistoryState::<span class="name">onExit</span>(<span class="type"><a href="qevent.html">QEvent</a></span> *<i>event</i>)</h3>
<p>Reimplemented from <a href="qabstractstate.html#onExit">QAbstractState::onExit</a>().</p>
<!-- @@@onExit -->
<!-- $$$setDefaultState -->
<h3 class="fn" id="setDefaultState"><a name="setDefaultState"></a><span class="type">void</span> QHistoryState::<span class="name">setDefaultState</span>(<span class="type"><a href="qabstractstate.html#QAbstractState">QAbstractState</a></span> *<i>state</i>)</h3>
<p>Sets this history state's default state to be the given <i>state</i>. <i>state</i> must be a sibling of this history state.</p>
<p>Note that this function does not set <i>state</i> as the initial state of its parent.</p>
<p><b>Note:</b> Setter function for property <a href="qhistorystate.html#defaultState-prop">defaultState</a>. </p><p><b>See also </b><a href="qhistorystate.html#defaultState">defaultState</a>().</p>
<!-- @@@setDefaultState -->
<!-- $$$setDefaultTransition -->
<h3 class="fn" id="setDefaultTransition"><a name="setDefaultTransition"></a><span class="type">void</span> QHistoryState::<span class="name">setDefaultTransition</span>(<span class="type"><a href="qabstracttransition.html">QAbstractTransition</a></span> *<i>transition</i>)</h3>
<p>Sets this history state's default transition to be the given <i>transition</i>. This will set the source state of the <i>transition</i> to the history state.</p>
<p>Note that the eventTest method of the <i>transition</i> will never be called.</p>
<p>This function was introduced in  Qt 5.6.</p>
<p><b>Note:</b> Setter function for property <a href="qhistorystate.html#defaultTransition-prop">defaultTransition</a>. </p><p><b>See also </b><a href="qhistorystate.html#defaultTransition">defaultTransition</a>().</p>
<!-- @@@setDefaultTransition -->
<!-- $$$setHistoryType -->
<h3 class="fn" id="setHistoryType"><a name="setHistoryType"></a><span class="type">void</span> QHistoryState::<span class="name">setHistoryType</span>(<span class="type"><a href="qhistorystate.html#HistoryType-enum">HistoryType</a></span> <i>type</i>)</h3>
<p>Sets the <i>type</i> of history that this history state records.</p>
<p><b>Note:</b> Setter function for property <a href="qhistorystate.html#historyType-prop">historyType</a>. </p><p><b>See also </b><a href="qhistorystate.html#historyType">historyType</a>().</p>
<!-- @@@setHistoryType -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2017 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>