Sophie

Sophie

distrib > Mageia > 6 > x86_64 > media > core-release > by-pkgid > 886c2ed147b4d6954d2d9fb23759f3ff > files > 191

qtquickcontrols25-doc-5.6.2-1.mga6.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qquickapplicationwindow.cpp -->
  <title>ApplicationWindow QML Type | Qt Labs Controls 5.6</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    window.onload = function(){document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");};
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.6</td><td ><a href="qtlabscontrols-index.html">Qt Labs Controls</a></td><td ><a href="qt-labs-controls-qmlmodule.html">QML Types</a></td><td >ApplicationWindow QML Type</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.6.2 Reference Documentation</td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#attached-properties">Attached Properties</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">ApplicationWindow QML Type</h1>
<span class="subtitle"></span>
<!-- $$$ApplicationWindow-brief -->
<p>Provides a top-level application window. <a href="#details">More...</a></p>
<!-- @@@ApplicationWindow -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import Qt.labs.controls 1.0</td></tr></table></div><ul>
<li><a href="qml-qt-labs-controls-applicationwindow-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="properties"></a>
<h2 id="properties">Properties</h2>
<ul>
<li class="fn"><b><b><a href="qml-qt-labs-controls-applicationwindow.html#activeFocusControl-prop">activeFocusControl</a></b></b> : Control</li>
<li class="fn"><b><b><a href="qml-qt-labs-controls-applicationwindow.html#contentData-prop">contentData</a></b></b> : list&lt;Object&gt;</li>
<li class="fn"><b><b><a href="qml-qt-labs-controls-applicationwindow.html#contentItem-prop">contentItem</a></b></b> : Item</li>
<li class="fn"><b><b><a href="qml-qt-labs-controls-applicationwindow.html#font-prop">font</a></b></b> : font</li>
<li class="fn"><b><b><a href="qml-qt-labs-controls-applicationwindow.html#footer-prop">footer</a></b></b> : Item</li>
<li class="fn"><b><b><a href="qml-qt-labs-controls-applicationwindow.html#header-prop">header</a></b></b> : Item</li>
<li class="fn"><b><b><a href="qml-qt-labs-controls-applicationwindow.html#overlay-prop">overlay</a></b></b><ul>
<li class="fn"><b><b><a href="qml-qt-labs-controls-applicationwindow.html#overlay-prop">overlay</a></b></b> : Item</li>
<li class="fn"><b><b><a href="qml-qt-labs-controls-applicationwindow.html#overlay.background-prop">overlay.background</a></b></b> : Item</li>
</ul>
</li>
</ul>
<a name="attached-properties"></a>
<h2 id="attached-properties">Attached Properties</h2>
<ul>
<li class="fn"><b><b><a href="qml-qt-labs-controls-applicationwindow.html#activeFocusControl-attached-prop">activeFocusControl</a></b></b> : Control</li>
<li class="fn"><b><b><a href="qml-qt-labs-controls-applicationwindow.html#contentItem-attached-prop">contentItem</a></b></b> : Item</li>
<li class="fn"><b><b><a href="qml-qt-labs-controls-applicationwindow.html#footer-attached-prop">footer</a></b></b> : Item</li>
<li class="fn"><b><b><a href="qml-qt-labs-controls-applicationwindow.html#header-attached-prop">header</a></b></b> : Item</li>
<li class="fn"><b><b><a href="qml-qt-labs-controls-applicationwindow.html#overlay-attached-prop">overlay</a></b></b> : Item</li>
<li class="fn"><b><b><a href="qml-qt-labs-controls-applicationwindow.html#window-attached-prop">window</a></b></b> : ApplicationWindow</li>
</ul>
<!-- $$$ApplicationWindow-description -->
<a name="details"></a>
<h2 id="details">Detailed Description</h2>
</p>
<p><a href="qml-qt-labs-controls-applicationwindow.html">ApplicationWindow</a> is a Window which makes it convenient to add a <a href="qml-qt-labs-controls-applicationwindow.html#header-attached-prop">header</a> and <a href="qml-qt-labs-controls-applicationwindow.html#footer-attached-prop">footer</a> item to the window.</p>
<p class="centerAlign"><img src="images/qtlabscontrols-applicationwindow-wireframe.png" alt="" /></p><pre class="qml">

  import Qt.labs.controls 1.0

  <span class="type"><a href="qml-qt-labs-controls-applicationwindow.html">ApplicationWindow</a></span> {
      <span class="name">visible</span>: <span class="number">true</span>

      <span class="name">header</span>: <span class="name">ToolBar</span> {
          <span class="comment">// ...</span>
      }

      <span class="name">footer</span>: <span class="name">TabBar</span> {
          <span class="comment">// ...</span>
      }

      <span class="type"><a href="qml-qt-labs-controls-stackview.html">StackView</a></span> {
          <span class="name">anchors</span>.fill: <span class="name">parent</span>
      }
  }

</pre>
<p><a href="qml-qt-labs-controls-applicationwindow.html">ApplicationWindow</a> supports popups via its <a href="qml-qt-labs-controls-applicationwindow.html#overlay-attached-prop">overlay</a> property, which ensures that popups are displayed above other content and that the background is dimmed when a modal popup is visible.</p>
<p><b>Note: </b>By default, an <a href="qml-qt-labs-controls-applicationwindow.html">ApplicationWindow</a> is not visible.</p><p><b>Note: </b><i>Types in the Qt.labs module are not guaranteed to remain compatible in future versions.</i></p><p><b>See also </b><a href="qml-qt-labs-controls-page.html">Page</a> and <a href="qtlabscontrols-containers.html">Container Controls</a>.</p>
<!-- @@@ApplicationWindow -->
<h2>Property Documentation</h2>
<!-- $$$activeFocusControl -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="activeFocusControl-prop">
<td class="tblQmlPropNode"><p>
<a name="activeFocusControl-prop"></a><span class="qmlreadonly">[read-only] </span><span class="name">activeFocusControl</span> : <span class="type"><a href="qml-qt-labs-controls-control.html">Control</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds the control that currently has active focus, or <code>null</code> if there is no control with active focus.</p>
<p>The difference between Window::activeFocusItem and <a href="qml-qt-labs-controls-applicationwindow.html#activeFocusControl-attached-prop">ApplicationWindow::activeFocusControl</a> is that the former may point to a building block of a control, whereas the latter points to the enclosing control. For example, when <a href="qml-qt-labs-controls-spinbox.html">SpinBox</a> has focus, activeFocusItem points to the editor and acticeFocusControl to the <a href="qml-qt-labs-controls-spinbox.html">SpinBox</a> itself.</p>
<p><b>See also </b>Window::activeFocusItem.</p>
</div></div><!-- @@@activeFocusControl -->
<br/>
<!-- $$$contentData -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="contentData-prop">
<td class="tblQmlPropNode"><p>
<a name="contentData-prop"></a><span class="qmldefault">[default] </span><span class="name">contentData</span> : <span class="type">list</span>&lt;<span class="type">Object</span>&gt;</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This default property holds the list of all objects declared as children of the window.</p>
<p><b>See also </b><a href="qml-qt-labs-controls-applicationwindow.html#contentItem-attached-prop">contentItem</a>.</p>
</div></div><!-- @@@contentData -->
<br/>
<!-- $$$contentItem -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="contentItem-prop">
<td class="tblQmlPropNode"><p>
<a name="contentItem-prop"></a><span class="qmlreadonly">[read-only] </span><span class="name">contentItem</span> : <span class="type">Item</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds the window content item.</p>
</div></div><!-- @@@contentItem -->
<br/>
<!-- $$$font -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="font-prop">
<td class="tblQmlPropNode"><p>
<a name="font-prop"></a><span class="name">font</span> : <span class="type"><a href="qml-qt-labs-controls-applicationwindow.html#font-prop">font</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds the font currently set for the window.</p>
<p>The default font depends on the system environment. QGuiApplication maintains a system/theme font which serves as a default for all application windows. You can also set the default font for windows by passing a custom font to QGuiApplication::setFont(), before loading any QML. Finally, the font is matched against Qt's font database to find the best match.</p>
<p><a href="qml-qt-labs-controls-applicationwindow.html">ApplicationWindow</a> propagates explicit font properties to child controls. If you change a specific property on the window's font, that property propagates to all child controls in the window, overriding any system defaults for that property.</p>
<p><b>See also </b><a href="qml-qt-labs-controls-control.html#font-prop">Control::font</a>.</p>
</div></div><!-- @@@font -->
<br/>
<!-- $$$footer -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="footer-prop">
<td class="tblQmlPropNode"><p>
<a name="footer-prop"></a><span class="name">footer</span> : <span class="type">Item</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds the window footer item. The footer item is positioned to the bottom, and resized to the width of the window. The default value is <code>null</code>.</p>
<p><b>See also </b><a href="qml-qt-labs-controls-applicationwindow.html#header-attached-prop">header</a> and <a href="qml-qt-labs-controls-page.html#footer-prop">Page::footer</a>.</p>
</div></div><!-- @@@footer -->
<br/>
<!-- $$$header -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="header-prop">
<td class="tblQmlPropNode"><p>
<a name="header-prop"></a><span class="name">header</span> : <span class="type">Item</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds the window header item. The header item is positioned to the top, and resized to the width of the window. The default value is <code>null</code>.</p>
<p><b>See also </b><a href="qml-qt-labs-controls-applicationwindow.html#footer-attached-prop">footer</a> and <a href="qml-qt-labs-controls-page.html#header-prop">Page::header</a>.</p>
</div></div><!-- @@@header -->
<br/>
<!-- $$$overlay -->
<div class="qmlitem"><div class="qmlproto"><div class="table"><table class="qmlname"><tr valign="top" class="even" id="overlay-prop"><th class="centerAlign"><p><a name="overlay-prop"></a><b>overlay group</b></p></th></tr><tr valign="top" class="odd" id="overlay-prop"><td class="tblQmlPropNode"><p><a name="overlay-prop"></a><span class="name">overlay</span> : <span class="type">Item</span></p></td></tr><tr valign="top" class="odd" id="overlay.background-prop"><td class="tblQmlPropNode"><p><a name="overlay.background-prop"></a><span class="name">overlay.background</span> : <span class="type">Item</span></p></td></tr></table></div></div><div class="qmldoc"><p>This property holds the window overlay item and its background that implements the background dimming when any modal popups are open. Popups are automatically reparented to the overlay.</p>
<p><b>See also </b><a href="qtlabscontrols-customize.html#popup">Popup</a>.</p>
</div></div><!-- @@@overlay -->
<br/>
<h2>Attached Property Documentation</h2>
<!-- $$$activeFocusControl -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="activeFocusControl-attached-prop">
<td class="tblQmlPropNode"><p>
<a name="activeFocusControl-attached-prop"></a><span class="qmlreadonly">[read-only] </span><span class="name">ApplicationWindow.activeFocusControl</span> : <span class="type"><a href="qml-qt-labs-controls-control.html">Control</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This attached property holds the control that currently has active focus, or <code>null</code> if there is no control with active focus. The property can be attached to any item. The value is <code>null</code> if the item is not in an <a href="qml-qt-labs-controls-applicationwindow.html">ApplicationWindow</a>, or the window has no active focus.</p>
<p><b>See also </b>Window::activeFocusItem.</p>
</div></div><!-- @@@activeFocusControl -->
<br/>
<!-- $$$contentItem -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="contentItem-attached-prop">
<td class="tblQmlPropNode"><p>
<a name="contentItem-attached-prop"></a><span class="qmlreadonly">[read-only] </span><span class="name">ApplicationWindow.contentItem</span> : <span class="type">Item</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This attached property holds the window content item. The property can be attached to any item. The value is <code>null</code> if the item is not in an <a href="qml-qt-labs-controls-applicationwindow.html">ApplicationWindow</a>.</p>
</div></div><!-- @@@contentItem -->
<br/>
<!-- $$$footer -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="footer-attached-prop">
<td class="tblQmlPropNode"><p>
<a name="footer-attached-prop"></a><span class="qmlreadonly">[read-only] </span><span class="name">ApplicationWindow.footer</span> : <span class="type">Item</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This attached property holds the window footer item. The property can be attached to any item. The value is <code>null</code> if the item is not in an <a href="qml-qt-labs-controls-applicationwindow.html">ApplicationWindow</a>, or the window has no footer item.</p>
</div></div><!-- @@@footer -->
<br/>
<!-- $$$header -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="header-attached-prop">
<td class="tblQmlPropNode"><p>
<a name="header-attached-prop"></a><span class="qmlreadonly">[read-only] </span><span class="name">ApplicationWindow.header</span> : <span class="type">Item</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This attached property holds the window header item. The property can be attached to any item. The value is <code>null</code> if the item is not in an <a href="qml-qt-labs-controls-applicationwindow.html">ApplicationWindow</a>, or the window has no header item.</p>
</div></div><!-- @@@header -->
<br/>
<!-- $$$overlay -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="overlay-attached-prop">
<td class="tblQmlPropNode"><p>
<a name="overlay-attached-prop"></a><span class="qmlreadonly">[read-only] </span><span class="name">ApplicationWindow.overlay</span> : <span class="type">Item</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This attached property holds the window overlay item. The property can be attached to any item. The value is <code>null</code> if the item is not in an <a href="qml-qt-labs-controls-applicationwindow.html">ApplicationWindow</a>.</p>
</div></div><!-- @@@overlay -->
<br/>
<!-- $$$window -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="window-attached-prop">
<td class="tblQmlPropNode"><p>
<a name="window-attached-prop"></a><span class="qmlreadonly">[read-only] </span><span class="name">ApplicationWindow.window</span> : <span class="type"><a href="qml-qt-labs-controls-applicationwindow.html">ApplicationWindow</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This attached property holds the application window. The property can be attached to any item. The value is <code>null</code> if the item is not in an <a href="qml-qt-labs-controls-applicationwindow.html">ApplicationWindow</a>.</p>
</div></div><!-- @@@window -->
<br/>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2016 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>