You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
769 lines
91 KiB
769 lines
91 KiB
<!-- HTML header for doxygen 1.8.13-->
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.14"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>QtMvvm: QtMvvm::ViewModel Class Reference</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0" style="display: inline;">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">QtMvvm
|
|
 <span id="projectnumber">1.0.0</span>
|
|
</div>
|
|
<div id="projectbrief">A mvvm oriented library for Qt, to create Projects for Widgets and Quick in parallel</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<a style="float: right;" target="_blank" href="https://github.com/Skycoder42/QtMvvm">
|
|
<img style="padding: 10px;" src="GitHub_Logo.png"/>
|
|
</a>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.14 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></div>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="namespace_qt_mvvm.html">QtMvvm</a></li><li class="navelem"><a class="el" href="class_qt_mvvm_1_1_view_model.html">ViewModel</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#pub-slots">Public Slots</a> |
|
|
<a href="#signals">Signals</a> |
|
|
<a href="#pub-methods">Public Member Functions</a> |
|
|
<a href="#pro-methods">Protected Member Functions</a> |
|
|
<a href="class_qt_mvvm_1_1_view_model-members.html">List of all members</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">QtMvvm::ViewModel Class Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p>The base class for all viewmodels.
|
|
<a href="class_qt_mvvm_1_1_view_model.html#details">More...</a></p>
|
|
|
|
<p><code>#include <<a class="el" href="viewmodel_8h_source.html">viewmodel.h</a>></code></p>
|
|
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
|
|
<img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for QtMvvm::ViewModel:</div>
|
|
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
|
|
</div>
|
|
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
|
|
<div class="center">
|
|
<img src="class_qt_mvvm_1_1_view_model.png" usemap="#QtMvvm::ViewModel_map" alt=""/>
|
|
<map id="QtMvvm::ViewModel_map" name="QtMvvm::ViewModel_map">
|
|
<area target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html" alt="QObject" shape="rect" coords="240,0,470,24"/>
|
|
<area href="class_qt_mvvm_1_1_data_sync_view_model.html" title="A viewmodel to show a overview of the datasync status and account. " alt="QtMvvm::DataSyncViewModel" shape="rect" coords="0,112,230,136"/>
|
|
<area href="class_qt_mvvm_1_1_network_exchange_view_model.html" title="A viewmodel to show a dialog to exchange account data via the QtDataSync::UserExchangeManager. " alt="QtMvvm::NetworkExchangeViewModel" shape="rect" coords="240,112,470,136"/>
|
|
<area href="class_qt_mvvm_1_1_settings_view_model.html" title="A ViewModel for a generic settings dialog based of an XML settings file. " alt="QtMvvm::SettingsViewModel" shape="rect" coords="480,112,710,136"/>
|
|
</map>
|
|
</div></div>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-slots"></a>
|
|
Public Slots</h2></td></tr>
|
|
<tr class="memitem:aed696c49a28b9615d3433c6a27006c70"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_mvvm_1_1_view_model.html#aed696c49a28b9615d3433c6a27006c70">onInit</a> (const QVariantHash &params)</td></tr>
|
|
<tr class="memdesc:aed696c49a28b9615d3433c6a27006c70"><td class="mdescLeft"> </td><td class="mdescRight">Called by the presenter to initialize the viewmodel. <a href="#aed696c49a28b9615d3433c6a27006c70">More...</a><br /></td></tr>
|
|
<tr class="separator:aed696c49a28b9615d3433c6a27006c70"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0da1ac73d99d0ddd7d22937e6c2e476d"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_mvvm_1_1_view_model.html#a0da1ac73d99d0ddd7d22937e6c2e476d">onResult</a> (quint32 requestCode, const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qvariant.html">QVariant</a> &result)</td></tr>
|
|
<tr class="memdesc:a0da1ac73d99d0ddd7d22937e6c2e476d"><td class="mdescLeft"> </td><td class="mdescRight">Called by the presenter when a result of a showed viewmodel is ready. <a href="#a0da1ac73d99d0ddd7d22937e6c2e476d">More...</a><br /></td></tr>
|
|
<tr class="separator:a0da1ac73d99d0ddd7d22937e6c2e476d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="signals"></a>
|
|
Signals</h2></td></tr>
|
|
<tr class="memitem:ac411a428c622bf6cf9b0b594de23d81f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_mvvm_1_1_view_model.html#ac411a428c622bf6cf9b0b594de23d81f">resultReady</a> (const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qvariant.html">QVariant</a> &result)</td></tr>
|
|
<tr class="memdesc:ac411a428c622bf6cf9b0b594de23d81f"><td class="mdescLeft"> </td><td class="mdescRight">Should be emitted when the viewmodels result is ready. <a href="#ac411a428c622bf6cf9b0b594de23d81f">More...</a><br /></td></tr>
|
|
<tr class="separator:ac411a428c622bf6cf9b0b594de23d81f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
|
Public Member Functions</h2></td></tr>
|
|
<tr class="memitem:ab9af98395bd1f6d8ee3fbba360002768"><td class="memItemLeft" align="right" valign="top"><a id="ab9af98395bd1f6d8ee3fbba360002768"></a>
|
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_mvvm_1_1_view_model.html#ab9af98395bd1f6d8ee3fbba360002768">ViewModel</a> (<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> *<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#parent">parent</a>=nullptr)</td></tr>
|
|
<tr class="memdesc:ab9af98395bd1f6d8ee3fbba360002768"><td class="mdescLeft"> </td><td class="mdescRight">Default constructor with parent. <br /></td></tr>
|
|
<tr class="separator:ab9af98395bd1f6d8ee3fbba360002768"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="inherit_header pub_methods_class_q_object"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_q_object')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="target="_blank" https://doc.qt.io/qt-5/class_q_object.html">QObject</a></td></tr>
|
|
<tr class="memitem:QObject inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="QObject"></a>
|
|
 </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#QObject">QObject</a> (<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> *<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#parent">parent</a>)</td></tr>
|
|
<tr class="separator:QObject inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:event inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="event"></a>
|
|
virtual bool </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#event">event</a> (<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qevent.html">QEvent</a> *e)</td></tr>
|
|
<tr class="separator:event inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:eventFilter inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="eventFilter"></a>
|
|
virtual bool </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#eventFilter">eventFilter</a> (<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> *watched, <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qevent.html">QEvent</a> *<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#event">event</a>)</td></tr>
|
|
<tr class="separator:eventFilter inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:metaObject inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="metaObject"></a>
|
|
virtual const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qmetaobject.html">QMetaObject</a> * </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#metaObject">metaObject</a> () const</td></tr>
|
|
<tr class="separator:metaObject inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:objectName-prop inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="objectName-prop"></a>
|
|
<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qstring.html">QString</a> </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#objectName-prop">objectName</a> () const</td></tr>
|
|
<tr class="separator:objectName-prop inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:objectName-prop inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="objectName-prop"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#objectName-prop">setObjectName</a> (const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qstring.html">QString</a> &name)</td></tr>
|
|
<tr class="separator:objectName-prop inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:isWidgetType inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="isWidgetType"></a>
|
|
bool </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#isWidgetType">isWidgetType</a> () const</td></tr>
|
|
<tr class="separator:isWidgetType inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:isWindowType inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="isWindowType"></a>
|
|
bool </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#isWindowType">isWindowType</a> () const</td></tr>
|
|
<tr class="separator:isWindowType inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:signalsBlocked inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="signalsBlocked"></a>
|
|
bool </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#signalsBlocked">signalsBlocked</a> () const</td></tr>
|
|
<tr class="separator:signalsBlocked inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:blockSignals inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="blockSignals"></a>
|
|
bool </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#blockSignals">blockSignals</a> (bool block)</td></tr>
|
|
<tr class="separator:blockSignals inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:thread inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="thread"></a>
|
|
<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qthread.html">QThread</a> * </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#thread">thread</a> () const</td></tr>
|
|
<tr class="separator:thread inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:moveToThread inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="moveToThread"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#moveToThread">moveToThread</a> (<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qthread.html">QThread</a> *targetThread)</td></tr>
|
|
<tr class="separator:moveToThread inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:startTimer inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="startTimer"></a>
|
|
int </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#startTimer">startTimer</a> (int interval, Qt::TimerType timerType)</td></tr>
|
|
<tr class="separator:startTimer inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:startTimer-1 inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="startTimer-1"></a>
|
|
int </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#startTimer-1">startTimer</a> (std::chrono::milliseconds time, Qt::TimerType timerType)</td></tr>
|
|
<tr class="separator:startTimer-1 inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:killTimer inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="killTimer"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#killTimer">killTimer</a> (int id)</td></tr>
|
|
<tr class="separator:killTimer inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:findChild inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="findChild"></a>
|
|
T </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#findChild">findChild</a> (const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qstring.html">QString</a> &name, <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qt.html#FindChildOption-enum">Qt::FindChildOptions</a> options) const</td></tr>
|
|
<tr class="separator:findChild inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:findChildren inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="findChildren"></a>
|
|
<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qlist.html">QList</a>< T > </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#findChildren">findChildren</a> (const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qstring.html">QString</a> &name, <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qt.html#FindChildOption-enum">Qt::FindChildOptions</a> options) const</td></tr>
|
|
<tr class="separator:findChildren inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:findChildren-1 inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="findChildren-1"></a>
|
|
<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qlist.html">QList</a>< T > </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#findChildren-1">findChildren</a> (const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qregexp.html">QRegExp</a> &regExp, <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qt.html#FindChildOption-enum">Qt::FindChildOptions</a> options) const</td></tr>
|
|
<tr class="separator:findChildren-1 inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:findChildren-2 inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="findChildren-2"></a>
|
|
<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qlist.html">QList</a>< T > </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#findChildren-2">findChildren</a> (const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qregularexpression.html">QRegularExpression</a> &re, <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qt.html#FindChildOption-enum">Qt::FindChildOptions</a> options) const</td></tr>
|
|
<tr class="separator:findChildren-2 inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:children inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="children"></a>
|
|
const QObjectList & </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#children">children</a> () const</td></tr>
|
|
<tr class="separator:children inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:setParent inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="setParent"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#setParent">setParent</a> (<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> *<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#parent">parent</a>)</td></tr>
|
|
<tr class="separator:setParent inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:installEventFilter inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="installEventFilter"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#installEventFilter">installEventFilter</a> (<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> *filterObj)</td></tr>
|
|
<tr class="separator:installEventFilter inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:removeEventFilter inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="removeEventFilter"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#removeEventFilter">removeEventFilter</a> (<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> *obj)</td></tr>
|
|
<tr class="separator:removeEventFilter inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:connect-2 inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="connect-2"></a>
|
|
<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qmetaobject-connection.html">QMetaObject::Connection</a> </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#connect-2">connect</a> (const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> *<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#sender">sender</a>, const char *signal, const char *method, Qt::ConnectionType type) const</td></tr>
|
|
<tr class="separator:connect-2 inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:disconnect-2 inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="disconnect-2"></a>
|
|
bool </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#disconnect-2">disconnect</a> (const char *signal, const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> *receiver, const char *method) const</td></tr>
|
|
<tr class="separator:disconnect-2 inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:disconnect-3 inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="disconnect-3"></a>
|
|
bool </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#disconnect-3">disconnect</a> (const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> *receiver, const char *method) const</td></tr>
|
|
<tr class="separator:disconnect-3 inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:dumpObjectTree-1 inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="dumpObjectTree-1"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject-obsolete.html#dumpObjectTree-1">dumpObjectTree</a> ()</td></tr>
|
|
<tr class="separator:dumpObjectTree-1 inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:dumpObjectInfo-1 inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="dumpObjectInfo-1"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject-obsolete.html#dumpObjectInfo-1">dumpObjectInfo</a> ()</td></tr>
|
|
<tr class="separator:dumpObjectInfo-1 inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:dumpObjectTree inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="dumpObjectTree"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#dumpObjectTree">dumpObjectTree</a> () const</td></tr>
|
|
<tr class="separator:dumpObjectTree inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:dumpObjectInfo inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="dumpObjectInfo"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#dumpObjectInfo">dumpObjectInfo</a> () const</td></tr>
|
|
<tr class="separator:dumpObjectInfo inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:setProperty inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="setProperty"></a>
|
|
bool </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#setProperty">setProperty</a> (const char *name, const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qvariant.html">QVariant</a> &value)</td></tr>
|
|
<tr class="separator:setProperty inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:property inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="property"></a>
|
|
<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qvariant.html">QVariant</a> </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#property">property</a> (const char *name) const</td></tr>
|
|
<tr class="separator:property inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:dynamicPropertyNames inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="dynamicPropertyNames"></a>
|
|
<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qlist.html">QList</a>< <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qbytearray.html">QByteArray</a> > </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#dynamicPropertyNames">dynamicPropertyNames</a> () const</td></tr>
|
|
<tr class="separator:dynamicPropertyNames inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:destroyed inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="destroyed"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#destroyed">destroyed</a> (<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> *obj)</td></tr>
|
|
<tr class="separator:destroyed inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:objectNameChanged inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="objectNameChanged"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#objectNameChanged">objectNameChanged</a> (const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qstring.html">QString</a> &<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#objectName-prop">objectName</a>)</td></tr>
|
|
<tr class="separator:objectNameChanged inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:parent inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="parent"></a>
|
|
<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> * </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#parent">parent</a> () const</td></tr>
|
|
<tr class="separator:parent inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:inherits inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="inherits"></a>
|
|
bool </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#inherits">inherits</a> (const char *className) const</td></tr>
|
|
<tr class="separator:inherits inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:deleteLater inherit pub_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="deleteLater"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#deleteLater">deleteLater</a> ()</td></tr>
|
|
<tr class="separator:deleteLater inherit pub_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
|
|
Protected Member Functions</h2></td></tr>
|
|
<tr class="memitem:aa69782ceb2b1657f004fdfc22ea4efaa"><td class="memTemplParams" colspan="2">template<typename TViewModel > </td></tr>
|
|
<tr class="memitem:aa69782ceb2b1657f004fdfc22ea4efaa"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_qt_mvvm_1_1_view_model.html#aa69782ceb2b1657f004fdfc22ea4efaa">show</a> (const QVariantHash &params={}) const</td></tr>
|
|
<tr class="memdesc:aa69782ceb2b1657f004fdfc22ea4efaa"><td class="mdescLeft"> </td><td class="mdescRight">Show another viewmodel as a child of this one. <a href="#aa69782ceb2b1657f004fdfc22ea4efaa">More...</a><br /></td></tr>
|
|
<tr class="separator:aa69782ceb2b1657f004fdfc22ea4efaa"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a238c2cb9fed0e4131a7ca73033728d11"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_mvvm_1_1_view_model.html#a238c2cb9fed0e4131a7ca73033728d11">show</a> (const char *viewModelName, const QVariantHash &params={}) const</td></tr>
|
|
<tr class="memdesc:a238c2cb9fed0e4131a7ca73033728d11"><td class="mdescLeft"> </td><td class="mdescRight">Show another viewmodel as a child of this one. <a href="#a238c2cb9fed0e4131a7ca73033728d11">More...</a><br /></td></tr>
|
|
<tr class="separator:a238c2cb9fed0e4131a7ca73033728d11"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a14ff0d5358f52b5a3383f1f8d3e81202"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_mvvm_1_1_view_model.html#a14ff0d5358f52b5a3383f1f8d3e81202">show</a> (const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qmetaobject.html">QMetaObject</a> *viewMetaObject, const QVariantHash &params={}) const</td></tr>
|
|
<tr class="memdesc:a14ff0d5358f52b5a3383f1f8d3e81202"><td class="mdescLeft"> </td><td class="mdescRight">Show another viewmodel as a child of this one. <a href="#a14ff0d5358f52b5a3383f1f8d3e81202">More...</a><br /></td></tr>
|
|
<tr class="separator:a14ff0d5358f52b5a3383f1f8d3e81202"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a7a5b532fd4dfb25a01dcf8a10311ac1a"><td class="memTemplParams" colspan="2">template<typename TViewModel > </td></tr>
|
|
<tr class="memitem:a7a5b532fd4dfb25a01dcf8a10311ac1a"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_qt_mvvm_1_1_view_model.html#a7a5b532fd4dfb25a01dcf8a10311ac1a">showForResult</a> (quint32 requestCode, const QVariantHash &params={}) const</td></tr>
|
|
<tr class="memdesc:a7a5b532fd4dfb25a01dcf8a10311ac1a"><td class="mdescLeft"> </td><td class="mdescRight">Show another viewmodel as a child of this one and expect its result. <a href="#a7a5b532fd4dfb25a01dcf8a10311ac1a">More...</a><br /></td></tr>
|
|
<tr class="separator:a7a5b532fd4dfb25a01dcf8a10311ac1a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0bc3140cbd2c2dc6b40b5ca00c297a2c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_mvvm_1_1_view_model.html#a0bc3140cbd2c2dc6b40b5ca00c297a2c">showForResult</a> (quint32 requestCode, const char *viewModelName, const QVariantHash &params={}) const</td></tr>
|
|
<tr class="memdesc:a0bc3140cbd2c2dc6b40b5ca00c297a2c"><td class="mdescLeft"> </td><td class="mdescRight">Show another viewmodel as a child of this one and expect its result. <a href="#a0bc3140cbd2c2dc6b40b5ca00c297a2c">More...</a><br /></td></tr>
|
|
<tr class="separator:a0bc3140cbd2c2dc6b40b5ca00c297a2c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a08d21a1940935bc703bcfb50dc6656e4"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_mvvm_1_1_view_model.html#a08d21a1940935bc703bcfb50dc6656e4">showForResult</a> (quint32 requestCode, const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qmetaobject.html">QMetaObject</a> *viewMetaObject, const QVariantHash &params={}) const</td></tr>
|
|
<tr class="memdesc:a08d21a1940935bc703bcfb50dc6656e4"><td class="mdescLeft"> </td><td class="mdescRight">Show another viewmodel as a child of this one and expect its result. <a href="#a08d21a1940935bc703bcfb50dc6656e4">More...</a><br /></td></tr>
|
|
<tr class="separator:a08d21a1940935bc703bcfb50dc6656e4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="inherit_header pro_methods_class_q_object"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_class_q_object')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="target="_blank" https://doc.qt.io/qt-5/class_q_object.html">QObject</a></td></tr>
|
|
<tr class="memitem:sender inherit pro_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="sender"></a>
|
|
<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> * </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#sender">sender</a> () const</td></tr>
|
|
<tr class="separator:sender inherit pro_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:senderSignalIndex inherit pro_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="senderSignalIndex"></a>
|
|
int </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#senderSignalIndex">senderSignalIndex</a> () const</td></tr>
|
|
<tr class="separator:senderSignalIndex inherit pro_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:receivers inherit pro_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="receivers"></a>
|
|
int </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#receivers">receivers</a> (const char *signal) const</td></tr>
|
|
<tr class="separator:receivers inherit pro_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:isSignalConnected inherit pro_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="isSignalConnected"></a>
|
|
bool </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#isSignalConnected">isSignalConnected</a> (const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qmetamethod.html">QMetaMethod</a> &signal) const</td></tr>
|
|
<tr class="separator:isSignalConnected inherit pro_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:timerEvent inherit pro_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="timerEvent"></a>
|
|
virtual void </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#timerEvent">timerEvent</a> (<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qtimerevent.html">QTimerEvent</a> *<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#event">event</a>)</td></tr>
|
|
<tr class="separator:timerEvent inherit pro_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:childEvent inherit pro_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="childEvent"></a>
|
|
virtual void </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#childEvent">childEvent</a> (<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qchildevent.html">QChildEvent</a> *<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#event">event</a>)</td></tr>
|
|
<tr class="separator:childEvent inherit pro_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:customEvent inherit pro_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="customEvent"></a>
|
|
virtual void </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#customEvent">customEvent</a> (<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qevent.html">QEvent</a> *<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#event">event</a>)</td></tr>
|
|
<tr class="separator:customEvent inherit pro_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:connectNotify inherit pro_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="connectNotify"></a>
|
|
virtual void </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#connectNotify">connectNotify</a> (const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qmetamethod.html">QMetaMethod</a> &signal)</td></tr>
|
|
<tr class="separator:connectNotify inherit pro_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:disconnectNotify inherit pro_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="disconnectNotify"></a>
|
|
virtual void </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#disconnectNotify">disconnectNotify</a> (const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qmetamethod.html">QMetaMethod</a> &signal)</td></tr>
|
|
<tr class="separator:disconnectNotify inherit pro_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
|
|
Additional Inherited Members</h2></td></tr>
|
|
<tr class="inherit_header pub_static_methods_class_q_object"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_class_q_object')"><img src="closed.png" alt="-"/> Static Public Member Functions inherited from <a class="el" href="target="_blank" https://doc.qt.io/qt-5/class_q_object.html">QObject</a></td></tr>
|
|
<tr class="memitem:tr inherit pub_static_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="tr"></a>
|
|
<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qstring.html">QString</a> </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#tr">tr</a> (const char *sourceText, const char *disambiguation, int n)</td></tr>
|
|
<tr class="separator:tr inherit pub_static_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:trUtf8 inherit pub_static_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="trUtf8"></a>
|
|
<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qstring.html">QString</a> </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject-obsolete.html#trUtf8">trUtf8</a> (const char *sourceText, const char *disambiguation, int n)</td></tr>
|
|
<tr class="separator:trUtf8 inherit pub_static_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:connect inherit pub_static_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="connect"></a>
|
|
<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qmetaobject-connection.html">QMetaObject::Connection</a> </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#connect">connect</a> (const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> *<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#sender">sender</a>, const char *signal, const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> *receiver, const char *method, Qt::ConnectionType type)</td></tr>
|
|
<tr class="separator:connect inherit pub_static_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:connect-1 inherit pub_static_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="connect-1"></a>
|
|
<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qmetaobject-connection.html">QMetaObject::Connection</a> </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#connect-1">connect</a> (const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> *<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#sender">sender</a>, const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qmetamethod.html">QMetaMethod</a> &signal, const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> *receiver, const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qmetamethod.html">QMetaMethod</a> &method, Qt::ConnectionType type)</td></tr>
|
|
<tr class="separator:connect-1 inherit pub_static_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:connect-3 inherit pub_static_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="connect-3"></a>
|
|
<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qmetaobject-connection.html">QMetaObject::Connection</a> </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#connect-3">connect</a> (const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> *<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#sender">sender</a>, PointerToMemberFunction signal, const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> *receiver, PointerToMemberFunction method, Qt::ConnectionType type)</td></tr>
|
|
<tr class="separator:connect-3 inherit pub_static_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:connect-4 inherit pub_static_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="connect-4"></a>
|
|
<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qmetaobject-connection.html">QMetaObject::Connection</a> </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#connect-4">connect</a> (const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> *<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#sender">sender</a>, PointerToMemberFunction signal, Functor functor)</td></tr>
|
|
<tr class="separator:connect-4 inherit pub_static_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:connect-5 inherit pub_static_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="connect-5"></a>
|
|
<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qmetaobject-connection.html">QMetaObject::Connection</a> </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#connect-5">connect</a> (const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> *<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#sender">sender</a>, PointerToMemberFunction signal, const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> *context, Functor functor, Qt::ConnectionType type)</td></tr>
|
|
<tr class="separator:connect-5 inherit pub_static_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:disconnect inherit pub_static_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="disconnect"></a>
|
|
bool </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#disconnect">disconnect</a> (const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> *<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#sender">sender</a>, const char *signal, const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> *receiver, const char *method)</td></tr>
|
|
<tr class="separator:disconnect inherit pub_static_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:disconnect-1 inherit pub_static_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="disconnect-1"></a>
|
|
bool </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#disconnect-1">disconnect</a> (const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> *<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#sender">sender</a>, const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qmetamethod.html">QMetaMethod</a> &signal, const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> *receiver, const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qmetamethod.html">QMetaMethod</a> &method)</td></tr>
|
|
<tr class="separator:disconnect-1 inherit pub_static_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:disconnect-4 inherit pub_static_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="disconnect-4"></a>
|
|
bool </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#disconnect-4">disconnect</a> (const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qmetaobject-connection.html">QMetaObject::Connection</a> &connection)</td></tr>
|
|
<tr class="separator:disconnect-4 inherit pub_static_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:disconnect-5 inherit pub_static_methods_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="disconnect-5"></a>
|
|
bool </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#disconnect-5">disconnect</a> (const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> *<a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#sender">sender</a>, PointerToMemberFunction signal, const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> *receiver, PointerToMemberFunction method)</td></tr>
|
|
<tr class="separator:disconnect-5 inherit pub_static_methods_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="inherit_header properties_class_q_object"><td colspan="2" onclick="javascript:toggleInherit('properties_class_q_object')"><img src="closed.png" alt="-"/> Properties inherited from <a class="el" href="target="_blank" https://doc.qt.io/qt-5/class_q_object.html">QObject</a></td></tr>
|
|
<tr class="memitem:objectName-prop inherit properties_class_q_object"><td class="memItemLeft" align="right" valign="top"><a id="objectName-prop"></a>
|
|
 </td><td class="memItemRight" valign="bottom"><a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#objectName-prop">objectName</a></td></tr>
|
|
<tr class="separator:objectName-prop inherit properties_class_q_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><p>The base class for all viewmodels. </p>
|
|
<p>The <a class="el" href="class_qt_mvvm_1_1_view_model.html" title="The base class for all viewmodels. ">ViewModel</a> is the primary class of the core library is must be implemented to create custom viewmodels to be shown via the mvvm mechanism. To create a custom viewmodel, simply implement this class and show the viewmodel via one of the show methods. Viewmodels presented that way support automatic injection via injectable properties.</p>
|
|
<dl class="section attention"><dt>Attention</dt><dd>In order for a viewmodel be showble, it must implement an invokable constructor with a single QObject* parameter for the parent. It basically should look like this: <div class="fragment"><div class="line">Q_INVOKABLE <span class="keyword">explicit</span> MyViewModel(<a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> *<a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qobject.html#parent">parent</a> = <span class="keyword">nullptr</span>);</div></div><!-- fragment --></dd></dl>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qt_mvvm_1_1_core_app.html#aebc4f32860953bef017659c2d9d6dfdf" title="Show a new ViewModel by its type. ">CoreApp::show</a>, <a class="el" href="injection_8h.html#a0a6e278ad53a06df6f32b1b636ec6151" title="Mark a property for injection. ">QTMVVM_INJECT</a> </dd></dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="viewmodel_8h_source.html#l00020">20</a> of file <a class="el" href="viewmodel_8h_source.html">viewmodel.h</a>.</p>
|
|
</div><h2 class="groupheader">Member Function Documentation</h2>
|
|
<a id="aed696c49a28b9615d3433c6a27006c70"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aed696c49a28b9615d3433c6a27006c70">◆ </a></span>onInit</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">QtMvvm::ViewModel::onInit </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const QVariantHash & </td>
|
|
<td class="paramname"><em>params</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">virtual</span><span class="mlabel">slot</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Called by the presenter to initialize the viewmodel. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">params</td><td>The parameters to initialize the viewmodel with</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<p>This method is called by the presenter right after creating the view and reparenting the viewmodel to the view. The parameters are the ones that have been passed to the show method called to show this viewmodel instance. Reimplement this method if you need to perform initializations after beeing assigned to a viewmodel or if you want to support a parametrized viewmodel.</p>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qt_mvvm_1_1_view_model.html#aa69782ceb2b1657f004fdfc22ea4efaa" title="Show another viewmodel as a child of this one. ">ViewModel::show</a>, <a class="el" href="class_qt_mvvm_1_1_view_model.html#a7a5b532fd4dfb25a01dcf8a10311ac1a" title="Show another viewmodel as a child of this one and expect its result. ">ViewModel::showForResult</a>, <a class="el" href="class_qt_mvvm_1_1_core_app.html#aebc4f32860953bef017659c2d9d6dfdf" title="Show a new ViewModel by its type. ">CoreApp::show</a> </dd></dl>
|
|
|
|
<p>Reimplemented in <a class="el" href="class_qt_mvvm_1_1_data_sync_view_model.html#a820d813143b769c98daa8abc3d13c408">QtMvvm::DataSyncViewModel</a>, <a class="el" href="class_qt_mvvm_1_1_network_exchange_view_model.html#a48a8a8facd1b2a257e124147a1291233">QtMvvm::NetworkExchangeViewModel</a>, and <a class="el" href="class_qt_mvvm_1_1_settings_view_model.html#a320e7141b1ca4a5fd42becd577d4683b">QtMvvm::SettingsViewModel</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a0da1ac73d99d0ddd7d22937e6c2e476d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a0da1ac73d99d0ddd7d22937e6c2e476d">◆ </a></span>onResult</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">QtMvvm::ViewModel::onResult </td>
|
|
<td>(</td>
|
|
<td class="paramtype">quint32 </td>
|
|
<td class="paramname"><em>requestCode</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qvariant.html">QVariant</a> & </td>
|
|
<td class="paramname"><em>result</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">virtual</span><span class="mlabel">slot</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Called by the presenter when a result of a showed viewmodel is ready. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">requestCode</td><td>The request code of the show request for the viewmodel that triggered the result </td></tr>
|
|
<tr><td class="paramname">result</td><td>The result passed from the viewmodel</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<p>When showing a child viewmodel via <a class="el" href="class_qt_mvvm_1_1_view_model.html#a7a5b532fd4dfb25a01dcf8a10311ac1a" title="Show another viewmodel as a child of this one and expect its result. ">showForResult()</a>, then the result of that show request is reported back via this function. The requestCode is the one that was passed to the <a class="el" href="class_qt_mvvm_1_1_view_model.html#a7a5b532fd4dfb25a01dcf8a10311ac1a" title="Show another viewmodel as a child of this one and expect its result. ">showForResult()</a> method, and the result what the viewmodel reported back. If the showed viewmodel emitted <a class="el" href="class_qt_mvvm_1_1_view_model.html#ac411a428c622bf6cf9b0b594de23d81f" title="Should be emitted when the viewmodels result is ready. ">resultReady()</a> before beeing destroyed, this value passed to that signal is whats reported as result. If the child viewmodel gets destroyed without ever emitting that signal, this method is still called, but with an invalid <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qvariant.html">QVariant</a> as result.</p>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qt_mvvm_1_1_view_model.html#a7a5b532fd4dfb25a01dcf8a10311ac1a" title="Show another viewmodel as a child of this one and expect its result. ">ViewModel::showForResult</a>, <a class="el" href="class_qt_mvvm_1_1_view_model.html#ac411a428c622bf6cf9b0b594de23d81f" title="Should be emitted when the viewmodels result is ready. ">ViewModel::resultReady</a> </dd></dl>
|
|
|
|
<p>Reimplemented in <a class="el" href="class_qt_mvvm_1_1_data_sync_view_model.html#a00882b4d210f598fdd9e9f96640f0d96">QtMvvm::DataSyncViewModel</a>, and <a class="el" href="class_qt_mvvm_1_1_network_exchange_view_model.html#a1b3a76fbf9fbc29bc8e444b589914406">QtMvvm::NetworkExchangeViewModel</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ac411a428c622bf6cf9b0b594de23d81f"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ac411a428c622bf6cf9b0b594de23d81f">◆ </a></span>resultReady</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">QtMvvm::ViewModel::resultReady </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qvariant.html">QVariant</a> & </td>
|
|
<td class="paramname"><em>result</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">signal</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Should be emitted when the viewmodels result is ready. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">result</td><td>The result that should be passed to the parent viewmodel</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<p>Viewmodels that have been created via <a class="el" href="class_qt_mvvm_1_1_view_model.html#a7a5b532fd4dfb25a01dcf8a10311ac1a" title="Show another viewmodel as a child of this one and expect its result. ">showForResult()</a> must emit this signal to report back the result of the show request. Doing so will lead to the <a class="el" href="class_qt_mvvm_1_1_view_model.html#a0da1ac73d99d0ddd7d22937e6c2e476d" title="Called by the presenter when a result of a showed viewmodel is ready. ">onResult()</a> method of the showing viewmodel beeing with the emitted result as second parameter. Not emitting this signal before the viewmodel gets destroy leads to the <a class="el" href="class_qt_mvvm_1_1_view_model.html#a0da1ac73d99d0ddd7d22937e6c2e476d" title="Called by the presenter when a result of a showed viewmodel is ready. ">onResult()</a> beeing called with an invalid result.</p>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qt_mvvm_1_1_view_model.html#a7a5b532fd4dfb25a01dcf8a10311ac1a" title="Show another viewmodel as a child of this one and expect its result. ">ViewModel::showForResult</a>, <a class="el" href="class_qt_mvvm_1_1_view_model.html#a0da1ac73d99d0ddd7d22937e6c2e476d" title="Called by the presenter when a result of a showed viewmodel is ready. ">ViewModel::onResult</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aa69782ceb2b1657f004fdfc22ea4efaa"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aa69782ceb2b1657f004fdfc22ea4efaa">◆ </a></span>show() <span class="overload">[1/3]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename TViewModel > </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">QtMvvm::ViewModel::show </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const QVariantHash & </td>
|
|
<td class="paramname"><em>params</em> = <code>{}</code></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Show another viewmodel as a child of this one. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">params</td><td>The show parameters to be passed to the created viewmodel</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<p>This method will send a show request to the core app to show a viewmodel of the given type. The parameters are passed to the <a class="el" href="class_qt_mvvm_1_1_view_model.html#aed696c49a28b9615d3433c6a27006c70" title="Called by the presenter to initialize the viewmodel. ">onInit()</a> method by the presenter after creating and parenting the view. The viewmodel will be shown asynchronously, so this method will return immediatly.</p>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qt_mvvm_1_1_view_model.html#a7a5b532fd4dfb25a01dcf8a10311ac1a" title="Show another viewmodel as a child of this one and expect its result. ">ViewModel::showForResult</a>, <a class="el" href="class_qt_mvvm_1_1_view_model.html#aed696c49a28b9615d3433c6a27006c70" title="Called by the presenter to initialize the viewmodel. ">ViewModel::onInit</a>, <a class="el" href="class_qt_mvvm_1_1_core_app.html#aebc4f32860953bef017659c2d9d6dfdf" title="Show a new ViewModel by its type. ">CoreApp::show</a> </dd></dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="viewmodel_8h_source.html#l00066">66</a> of file <a class="el" href="viewmodel_8h_source.html">viewmodel.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a238c2cb9fed0e4131a7ca73033728d11"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a238c2cb9fed0e4131a7ca73033728d11">◆ </a></span>show() <span class="overload">[2/3]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">QtMvvm::ViewModel::show </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const char * </td>
|
|
<td class="paramname"><em>viewModelName</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const QVariantHash & </td>
|
|
<td class="paramname"><em>params</em> = <code>{}</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Show another viewmodel as a child of this one. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">viewModelName</td><td>The name of the viewmodel class to be shown </td></tr>
|
|
<tr><td class="paramname">params</td><td>The show parameters to be passed to the created viewmodel</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<p>This method will send a show request to the core app to show a viewmodel of the given type. The parameters are passed to the <a class="el" href="class_qt_mvvm_1_1_view_model.html#aed696c49a28b9615d3433c6a27006c70" title="Called by the presenter to initialize the viewmodel. ">onInit()</a> method by the presenter after creating and parenting the view. The viewmodel will be shown asynchronously, so this method will return immediatly.</p>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qt_mvvm_1_1_view_model.html#a7a5b532fd4dfb25a01dcf8a10311ac1a" title="Show another viewmodel as a child of this one and expect its result. ">ViewModel::showForResult</a>, <a class="el" href="class_qt_mvvm_1_1_view_model.html#aed696c49a28b9615d3433c6a27006c70" title="Called by the presenter to initialize the viewmodel. ">ViewModel::onInit</a>, <a class="el" href="class_qt_mvvm_1_1_core_app.html#aebc4f32860953bef017659c2d9d6dfdf" title="Show a new ViewModel by its type. ">CoreApp::show</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a14ff0d5358f52b5a3383f1f8d3e81202"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a14ff0d5358f52b5a3383f1f8d3e81202">◆ </a></span>show() <span class="overload">[3/3]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">QtMvvm::ViewModel::show </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qmetaobject.html">QMetaObject</a> * </td>
|
|
<td class="paramname"><em>viewMetaObject</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const QVariantHash & </td>
|
|
<td class="paramname"><em>params</em> = <code>{}</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Show another viewmodel as a child of this one. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">viewMetaObject</td><td>The metaobject of the viewmodel class to be shown </td></tr>
|
|
<tr><td class="paramname">params</td><td>The show parameters to be passed to the created viewmodel</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<p>This method will send a show request to the core app to show a viewmodel of the given type. The parameters are passed to the <a class="el" href="class_qt_mvvm_1_1_view_model.html#aed696c49a28b9615d3433c6a27006c70" title="Called by the presenter to initialize the viewmodel. ">onInit()</a> method by the presenter after creating and parenting the view. The viewmodel will be shown asynchronously, so this method will return immediatly.</p>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qt_mvvm_1_1_view_model.html#a7a5b532fd4dfb25a01dcf8a10311ac1a" title="Show another viewmodel as a child of this one and expect its result. ">ViewModel::showForResult</a>, <a class="el" href="class_qt_mvvm_1_1_view_model.html#aed696c49a28b9615d3433c6a27006c70" title="Called by the presenter to initialize the viewmodel. ">ViewModel::onInit</a>, <a class="el" href="class_qt_mvvm_1_1_core_app.html#aebc4f32860953bef017659c2d9d6dfdf" title="Show a new ViewModel by its type. ">CoreApp::show</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a7a5b532fd4dfb25a01dcf8a10311ac1a"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a7a5b532fd4dfb25a01dcf8a10311ac1a">◆ </a></span>showForResult() <span class="overload">[1/3]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename TViewModel > </div>
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">QtMvvm::ViewModel::showForResult </td>
|
|
<td>(</td>
|
|
<td class="paramtype">quint32 </td>
|
|
<td class="paramname"><em>requestCode</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const QVariantHash & </td>
|
|
<td class="paramname"><em>params</em> = <code>{}</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Show another viewmodel as a child of this one and expect its result. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">requestCode</td><td>The code of the show request </td></tr>
|
|
<tr><td class="paramname">params</td><td>The show parameters to be passed to the created viewmodel</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<p>This method will send a show request to the core app to show a viewmodel of the given type. The parameters are passed to the <a class="el" href="class_qt_mvvm_1_1_view_model.html#aed696c49a28b9615d3433c6a27006c70" title="Called by the presenter to initialize the viewmodel. ">onInit()</a> method by the presenter after creating and parenting the view. The viewmodel will be shown asynchronously, so this method will return immediatly. The viewmodel is show for a result, meaning that a result is reported back via <a class="el" href="class_qt_mvvm_1_1_view_model.html#aed696c49a28b9615d3433c6a27006c70" title="Called by the presenter to initialize the viewmodel. ">onInit()</a> as soon as the shown viewmodel emits <a class="el" href="class_qt_mvvm_1_1_view_model.html#ac411a428c622bf6cf9b0b594de23d81f" title="Should be emitted when the viewmodels result is ready. ">resultReady()</a> or has been destroyed. The request code is passed to the <a class="el" href="class_qt_mvvm_1_1_view_model.html#a0da1ac73d99d0ddd7d22937e6c2e476d" title="Called by the presenter when a result of a showed viewmodel is ready. ">onResult()</a> method in order to identify the show request.</p>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qt_mvvm_1_1_view_model.html#aa69782ceb2b1657f004fdfc22ea4efaa" title="Show another viewmodel as a child of this one. ">ViewModel::show</a>, <a class="el" href="class_qt_mvvm_1_1_view_model.html#aed696c49a28b9615d3433c6a27006c70" title="Called by the presenter to initialize the viewmodel. ">ViewModel::onInit</a>, <a class="el" href="class_qt_mvvm_1_1_view_model.html#ac411a428c622bf6cf9b0b594de23d81f" title="Should be emitted when the viewmodels result is ready. ">ViewModel::resultReady</a>, <a class="el" href="class_qt_mvvm_1_1_view_model.html#a0da1ac73d99d0ddd7d22937e6c2e476d" title="Called by the presenter when a result of a showed viewmodel is ready. ">ViewModel::onResult</a>, <a class="el" href="class_qt_mvvm_1_1_core_app.html#aebc4f32860953bef017659c2d9d6dfdf" title="Show a new ViewModel by its type. ">CoreApp::show</a> </dd></dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="viewmodel_8h_source.html#l00073">73</a> of file <a class="el" href="viewmodel_8h_source.html">viewmodel.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a0bc3140cbd2c2dc6b40b5ca00c297a2c"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a0bc3140cbd2c2dc6b40b5ca00c297a2c">◆ </a></span>showForResult() <span class="overload">[2/3]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">QtMvvm::ViewModel::showForResult </td>
|
|
<td>(</td>
|
|
<td class="paramtype">quint32 </td>
|
|
<td class="paramname"><em>requestCode</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const char * </td>
|
|
<td class="paramname"><em>viewModelName</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const QVariantHash & </td>
|
|
<td class="paramname"><em>params</em> = <code>{}</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Show another viewmodel as a child of this one and expect its result. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">viewModelName</td><td>The name of the viewmodel class to be shown </td></tr>
|
|
<tr><td class="paramname">requestCode</td><td>The code of the show request </td></tr>
|
|
<tr><td class="paramname">params</td><td>The show parameters to be passed to the created viewmodel</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<p>This method will send a show request to the core app to show a viewmodel of the given type. The parameters are passed to the <a class="el" href="class_qt_mvvm_1_1_view_model.html#aed696c49a28b9615d3433c6a27006c70" title="Called by the presenter to initialize the viewmodel. ">onInit()</a> method by the presenter after creating and parenting the view. The viewmodel will be shown asynchronously, so this method will return immediatly. The viewmodel is show for a result, meaning that a result is reported back via <a class="el" href="class_qt_mvvm_1_1_view_model.html#aed696c49a28b9615d3433c6a27006c70" title="Called by the presenter to initialize the viewmodel. ">onInit()</a> as soon as the shown viewmodel emits <a class="el" href="class_qt_mvvm_1_1_view_model.html#ac411a428c622bf6cf9b0b594de23d81f" title="Should be emitted when the viewmodels result is ready. ">resultReady()</a> or has been destroyed. The request code is passed to the <a class="el" href="class_qt_mvvm_1_1_view_model.html#a0da1ac73d99d0ddd7d22937e6c2e476d" title="Called by the presenter when a result of a showed viewmodel is ready. ">onResult()</a> method in order to identify the show request.</p>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qt_mvvm_1_1_view_model.html#aa69782ceb2b1657f004fdfc22ea4efaa" title="Show another viewmodel as a child of this one. ">ViewModel::show</a>, <a class="el" href="class_qt_mvvm_1_1_view_model.html#aed696c49a28b9615d3433c6a27006c70" title="Called by the presenter to initialize the viewmodel. ">ViewModel::onInit</a>, <a class="el" href="class_qt_mvvm_1_1_view_model.html#ac411a428c622bf6cf9b0b594de23d81f" title="Should be emitted when the viewmodels result is ready. ">ViewModel::resultReady</a>, <a class="el" href="class_qt_mvvm_1_1_view_model.html#a0da1ac73d99d0ddd7d22937e6c2e476d" title="Called by the presenter when a result of a showed viewmodel is ready. ">ViewModel::onResult</a>, <a class="el" href="class_qt_mvvm_1_1_core_app.html#aebc4f32860953bef017659c2d9d6dfdf" title="Show a new ViewModel by its type. ">CoreApp::show</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a08d21a1940935bc703bcfb50dc6656e4"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a08d21a1940935bc703bcfb50dc6656e4">◆ </a></span>showForResult() <span class="overload">[3/3]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">QtMvvm::ViewModel::showForResult </td>
|
|
<td>(</td>
|
|
<td class="paramtype">quint32 </td>
|
|
<td class="paramname"><em>requestCode</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="elRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qmetaobject.html">QMetaObject</a> * </td>
|
|
<td class="paramname"><em>viewMetaObject</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const QVariantHash & </td>
|
|
<td class="paramname"><em>params</em> = <code>{}</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Show another viewmodel as a child of this one and expect its result. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">viewMetaObject</td><td>The metaobject of the viewmodel class to be shown </td></tr>
|
|
<tr><td class="paramname">requestCode</td><td>The code of the show request </td></tr>
|
|
<tr><td class="paramname">params</td><td>The show parameters to be passed to the created viewmodel</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<p>This method will send a show request to the core app to show a viewmodel of the given type. The parameters are passed to the <a class="el" href="class_qt_mvvm_1_1_view_model.html#aed696c49a28b9615d3433c6a27006c70" title="Called by the presenter to initialize the viewmodel. ">onInit()</a> method by the presenter after creating and parenting the view. The viewmodel will be shown asynchronously, so this method will return immediatly. The viewmodel is show for a result, meaning that a result is reported back via <a class="el" href="class_qt_mvvm_1_1_view_model.html#aed696c49a28b9615d3433c6a27006c70" title="Called by the presenter to initialize the viewmodel. ">onInit()</a> as soon as the shown viewmodel emits <a class="el" href="class_qt_mvvm_1_1_view_model.html#ac411a428c622bf6cf9b0b594de23d81f" title="Should be emitted when the viewmodels result is ready. ">resultReady()</a> or has been destroyed. The request code is passed to the <a class="el" href="class_qt_mvvm_1_1_view_model.html#a0da1ac73d99d0ddd7d22937e6c2e476d" title="Called by the presenter when a result of a showed viewmodel is ready. ">onResult()</a> method in order to identify the show request.</p>
|
|
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qt_mvvm_1_1_view_model.html#aa69782ceb2b1657f004fdfc22ea4efaa" title="Show another viewmodel as a child of this one. ">ViewModel::show</a>, <a class="el" href="class_qt_mvvm_1_1_view_model.html#aed696c49a28b9615d3433c6a27006c70" title="Called by the presenter to initialize the viewmodel. ">ViewModel::onInit</a>, <a class="el" href="class_qt_mvvm_1_1_view_model.html#ac411a428c622bf6cf9b0b594de23d81f" title="Should be emitted when the viewmodels result is ready. ">ViewModel::resultReady</a>, <a class="el" href="class_qt_mvvm_1_1_view_model.html#a0da1ac73d99d0ddd7d22937e6c2e476d" title="Called by the presenter when a result of a showed viewmodel is ready. ">ViewModel::onResult</a>, <a class="el" href="class_qt_mvvm_1_1_core_app.html#aebc4f32860953bef017659c2d9d6dfdf" title="Show a new ViewModel by its type. ">CoreApp::show</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/>The documentation for this class was generated from the following files:<ul>
|
|
<li><a class="el" href="viewmodel_8h_source.html">viewmodel.h</a></li>
|
|
<li>viewmodel.dox</li>
|
|
</ul>
|
|
</div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated on Wed Mar 14 2018 16:19:59 for QtMvvm by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.14
|
|
</small></address>
|
|
</body>
|
|
</html>
|
|
|