Sophie

Sophie

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

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

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qapplication.cpp -->
  <title>Obsolete Members for QApplication | Qt Widgets 5.9</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.9</td><td ><a href="qtwidgets-index.html">Qt Widgets</a></td><td ><a href="qtwidgets-module.html">C++ Classes</a></td><td >QApplication</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.9.4 Reference Documentation</td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">Obsolete Members for QApplication</h1>
<p><b>The following members of class <a href="qapplication.html">QApplication</a> are obsolete.</b> They are provided to keep old source code working. We strongly advise against using them in new code.</p>
<h2>Public Types</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>enum </td><td class="memItemRight bottomAlign"><b><a href="qapplication-obsolete.html#ColorSpec-enum">ColorSpec</a></b> { NormalColor, CustomColor, ManyColor }</td></tr>
</table></div>
<h2>Static Public Members</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>int </td><td class="memItemRight bottomAlign"><b><a href="qapplication-obsolete.html#colorSpec">colorSpec</a></b>()</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>Qt::LayoutDirection </td><td class="memItemRight bottomAlign"><b><a href="qapplication-obsolete.html#keyboardInputDirection">keyboardInputDirection</a></b>()</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>QLocale </td><td class="memItemRight bottomAlign"><b><a href="qapplication-obsolete.html#keyboardInputLocale">keyboardInputLocale</a></b>()</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>bool </td><td class="memItemRight bottomAlign"><b><a href="qapplication-obsolete.html#keypadNavigationEnabled">keypadNavigationEnabled</a></b>()</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>void </td><td class="memItemRight bottomAlign"><b><a href="qapplication-obsolete.html#setColorSpec">setColorSpec</a></b>(int <i>spec</i>)</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>void </td><td class="memItemRight bottomAlign"><b><a href="qapplication-obsolete.html#setGraphicsSystem">setGraphicsSystem</a></b>(<i>const QString &amp;</i>)</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>void </td><td class="memItemRight bottomAlign"><b><a href="qapplication-obsolete.html#setKeypadNavigationEnabled">setKeypadNavigationEnabled</a></b>(bool <i>enable</i>)</td></tr>
</table></div>
<h2>Member Type Documentation</h2>
<!-- $$$ColorSpec$$$NormalColor$$$CustomColor$$$ManyColor -->
<h3 class="fn" id="ColorSpec-enum"><a name="ColorSpec-enum"></a>enum QApplication::<span class="name">ColorSpec</span></h3>
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code>QApplication::NormalColor</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">the default color allocation policy</td></tr>
<tr><td class="topAlign"><code>QApplication::CustomColor</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">the same as NormalColor for X11; allocates colors to a palette on demand under Windows</td></tr>
<tr><td class="topAlign"><code>QApplication::ManyColor</code></td><td class="topAlign tblval"><code>2</code></td><td class="topAlign">the right choice for applications that use thousands of colors</td></tr>
</table></div>
<p>See <a href="qapplication-obsolete.html#setColorSpec">setColorSpec</a>() for full details.</p>
<!-- @@@ColorSpec -->
<h2>Member Function Documentation</h2>
<!-- $$$colorSpec[overload1]$$$colorSpec -->
<h3 class="fn" id="colorSpec"><a name="colorSpec"></a><code>[static] </code><span class="type">int</span> QApplication::<span class="name">colorSpec</span>()</h3>
<p>Returns the color specification.</p>
<p><b>See also </b><a href="qapplication-obsolete.html#setColorSpec">QApplication::setColorSpec</a>().</p>
<!-- @@@colorSpec -->
<!-- $$$keyboardInputDirection[overload1]$$$keyboardInputDirection -->
<h3 class="fn" id="keyboardInputDirection"><a name="keyboardInputDirection"></a><code>[static] </code><span class="type"><a href="../qtcore/qt.html#LayoutDirection-enum">Qt::LayoutDirection</a></span> QApplication::<span class="name">keyboardInputDirection</span>()</h3>
<p>Returns the current keyboard input direction. Replaced with <a href="../qtgui/qinputmethod.html#inputDirection-prop">QInputMethod::inputDirection</a>()</p>
<p>This function was introduced in  Qt 4.2.</p>
<p><b>See also </b><a href="../qtgui/qinputmethod.html#inputDirection-prop">QInputMethod::inputDirection</a>().</p>
<!-- @@@keyboardInputDirection -->
<!-- $$$keyboardInputLocale[overload1]$$$keyboardInputLocale -->
<h3 class="fn" id="keyboardInputLocale"><a name="keyboardInputLocale"></a><code>[static] </code><span class="type"><a href="../qtcore/qlocale.html">QLocale</a></span> QApplication::<span class="name">keyboardInputLocale</span>()</h3>
<p>Returns the current keyboard input locale. Replaced with <a href="../qtgui/qinputmethod.html#locale-prop">QInputMethod::locale</a>()</p>
<p>This function was introduced in  Qt 4.2.</p>
<!-- @@@keyboardInputLocale -->
<!-- $$$keypadNavigationEnabled[overload1]$$$keypadNavigationEnabled -->
<h3 class="fn" id="keypadNavigationEnabled"><a name="keypadNavigationEnabled"></a><code>[static] </code><span class="type">bool</span> QApplication::<span class="name">keypadNavigationEnabled</span>()</h3>
<p>Returns <code>true</code> if Qt is set to use keypad navigation; otherwise returns false. The default value is false.</p>
<p>This feature is available in Qt for Embedded Linux, and Windows CE only.</p>
<p><b>Note: </b>On Windows CE this feature is disabled by default for touch device mkspecs. To enable keypad navigation, build Qt with QT_KEYPAD_NAVIGATION defined.</p><p><b>See also </b><a href="qapplication-obsolete.html#setKeypadNavigationEnabled">setKeypadNavigationEnabled</a>() and <a href="qapplication.html#navigationMode">navigationMode</a>().</p>
<!-- @@@keypadNavigationEnabled -->
<!-- $$$setColorSpec[overload1]$$$setColorSpecint -->
<h3 class="fn" id="setColorSpec"><a name="setColorSpec"></a><code>[static] </code><span class="type">void</span> QApplication::<span class="name">setColorSpec</span>(<span class="type">int</span> <i>spec</i>)</h3>
<p>Sets the color specification for the application to <i>spec</i>.</p>
<p>This call has no effect.</p>
<p>The color specification controls how the application allocates colors when run on a display with a limited amount of colors, e.g&#x2e; 8 bit / 256 color displays.</p>
<p>The color specification must be set before you create the <a href="qapplication.html">QApplication</a> object.</p>
<p>The options are:</p>
<ul>
<li><a href="qapplication-obsolete.html#ColorSpec-enum">QApplication::NormalColor</a>. This is the default color allocation strategy. Use this option if your application uses buttons, menus, texts and pixmaps with few colors. With this option, the application uses system global colors. This works fine for most applications under X11, but on the Windows platform, it may cause dithering of non-standard colors.</li>
<li><a href="qapplication-obsolete.html#ColorSpec-enum">QApplication::CustomColor</a>. Use this option if your application needs a small number of custom colors. On X11, this option is the same as <a href="qapplication-obsolete.html#ColorSpec-enum">NormalColor</a>. On Windows, Qt creates a Windows palette, and allocates colors to it on demand.</li>
<li><a href="qapplication-obsolete.html#ColorSpec-enum">QApplication::ManyColor</a>. Use this option if your application is very color hungry, e.g&#x2e;, it requires thousands of colors. <br />
 Under X11 the effect is:<ul>
<li>For 256-color displays which have at best a 256 color true color visual, the default visual is used, and colors are allocated from a color cube. The color cube is the 6x6x6 (216 color) &quot;Web palette&quot; (the red, green, and blue components always have one of the following values: 0x00, 0x33, 0x66, 0x99, 0xCC, or 0xFF), but the number of colors can be changed by the <i>-ncols</i> option. The user can force the application to use the true color visual with the <a href="qapplication.html#QApplication">-visual</a> option.</li>
<li>For 256-color displays which have a true color visual with more than 256 colors, use that visual. Silicon Graphics X servers this feature, for example. They provide an 8 bit visual by default but can deliver true color when asked.</li>
</ul>
<p>On Windows, Qt creates a Windows palette, and fills it with a color cube.</p>
</li>
</ul>
<p>Be aware that the <a href="qapplication-obsolete.html#ColorSpec-enum">CustomColor</a> and <a href="qapplication-obsolete.html#ColorSpec-enum">ManyColor</a> choices may lead to colormap flashing: The foreground application gets (most) of the available colors, while the background windows will look less attractive.</p>
<p>Example:</p>
<pre class="cpp">

  <span class="type">int</span> main(<span class="type">int</span> argc<span class="operator">,</span> <span class="type">char</span> <span class="operator">*</span>argv<span class="operator">[</span><span class="operator">]</span>)
  {
      <span class="type"><a href="qapplication.html#QApplication">QApplication</a></span><span class="operator">::</span>setColorSpec(<span class="type"><a href="qapplication.html#QApplication">QApplication</a></span><span class="operator">::</span>ManyColor);
      <span class="type"><a href="qapplication.html#QApplication">QApplication</a></span> app(argc<span class="operator">,</span> argv);
      <span class="operator">.</span><span class="operator">.</span><span class="operator">.</span>
      <span class="keyword">return</span> app<span class="operator">.</span>exec();
  }

</pre>
<p><b>See also </b><a href="qapplication-obsolete.html#colorSpec">colorSpec</a>().</p>
<!-- @@@setColorSpec -->
<!-- $$$setGraphicsSystem[overload1]$$$setGraphicsSystemconstQString& -->
<h3 class="fn" id="setGraphicsSystem"><a name="setGraphicsSystem"></a><code>[static] </code><span class="type">void</span> QApplication::<span class="name">setGraphicsSystem</span>(<i>const QString &amp;</i>)</h3>
<p>This call has no effect.</p>
<p>Use the QPA framework instead.</p>
<!-- @@@setGraphicsSystem -->
<!-- $$$setKeypadNavigationEnabled[overload1]$$$setKeypadNavigationEnabledbool -->
<h3 class="fn" id="setKeypadNavigationEnabled"><a name="setKeypadNavigationEnabled"></a><code>[static] </code><span class="type">void</span> QApplication::<span class="name">setKeypadNavigationEnabled</span>(<span class="type">bool</span> <i>enable</i>)</h3>
<p>Sets whether Qt should use focus navigation suitable for use with a minimal keypad.</p>
<p>This feature is available in Qt for Embedded Linux, and Windows CE only.</p>
<p><b>Note: </b>On Windows CE this feature is disabled by default for touch device mkspecs. To enable keypad navigation, build Qt with QT_KEYPAD_NAVIGATION defined.</p><p><b>See also </b><a href="qapplication-obsolete.html#keypadNavigationEnabled">keypadNavigationEnabled</a>() and <a href="qapplication.html#setNavigationMode">setNavigationMode</a>().</p>
<!-- @@@setKeypadNavigationEnabled -->
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2017 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>