1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qcoreapplication.cpp -->
<title>Qt 4.8: Qt 3 Support Members for QCoreApplication</title>
<link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
<div class="content">
<a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
</div>
<div class="breadcrumb toolblock">
<ul>
<li class="first"><a href="index.html">Home</a></li>
<!-- Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtcore.html">QtCore</a></li>
<li>QCoreApplication</li>
</ul>
</div>
</div>
<div class="content mainContent">
<h1 class="title">Qt 3 Support Members for QCoreApplication</h1>
<p><b>The following class members are part of the <a href="qt3support.html">Qt 3 support layer</a>.</b> They are provided to help you port old code to Qt 4. We advise against using them in new code.</p>
<p><ul><li><a href="qcoreapplication.html">QCoreApplication class reference</a></li></ul></p>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qcoreapplication-qt3.html#lock">lock</a></b> ()</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qcoreapplication-qt3.html#locked">locked</a></b> ()</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qcoreapplication-qt3.html#tryLock">tryLock</a></b> ()</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qcoreapplication-qt3.html#unlock">unlock</a></b> ( bool <i>wakeUpGui</i> = true )</td></tr>
</table>
<ul>
<li class="fn">8 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
</ul>
<h2>Static Public Members</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qcoreapplication-qt3.html#argc">argc</a></b> ()</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> char ** </td><td class="memItemRight bottomAlign"><b><a href="qcoreapplication-qt3.html#argv">argv</a></b> ()</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qcoreapplication-qt3.html#enter_loop">enter_loop</a></b> ()</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qcoreapplication-qt3.html#exit_loop">exit_loop</a></b> ()</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qcoreapplication-qt3.html#loopLevel">loopLevel</a></b> ()</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qcoreapplication-qt3.html#processOneEvent">processOneEvent</a></b> ()</td></tr>
</table>
<h2>Member Function Documentation</h2>
<!-- $$$argc[overload1]$$$argc -->
<h3 class="fn"><a name="argc"></a><span class="type">int</span> QCoreApplication::<span class="name">argc</span> ()<tt> [static]</tt></h3>
<p>Use <a href="qcoreapplication.html#arguments">arguments</a>().size() instead.</p>
<!-- @@@argc -->
<!-- $$$argv[overload1]$$$argv -->
<h3 class="fn"><a name="argv"></a><span class="type">char</span> ** QCoreApplication::<span class="name">argv</span> ()<tt> [static]</tt></h3>
<p>Use <a href="qcoreapplication.html#arguments">arguments</a>() instead.</p>
<!-- @@@argv -->
<!-- $$$enter_loop[overload1]$$$enter_loop -->
<h3 class="fn"><a name="enter_loop"></a><span class="type">int</span> QCoreApplication::<span class="name">enter_loop</span> ()<tt> [static]</tt></h3>
<p>This function enters the main event loop (recursively). Do not call it unless you really know what you are doing.</p>
<!-- @@@enter_loop -->
<!-- $$$exit_loop[overload1]$$$exit_loop -->
<h3 class="fn"><a name="exit_loop"></a><span class="type">void</span> QCoreApplication::<span class="name">exit_loop</span> ()<tt> [static]</tt></h3>
<p>This function exits from a recursive call to the main event loop. Do not call it unless you are an expert.</p>
<!-- @@@exit_loop -->
<!-- $$$lock[overload1]$$$lock -->
<h3 class="fn"><a name="lock"></a><span class="type">void</span> QCoreApplication::<span class="name">lock</span> ()</h3>
<p>In Qt 3, this function locked the Qt library mutex, allowing non-GUI threads to perform basic printing operations using <a href="qpainter.html">QPainter</a>.</p>
<p>In Qt 4, this is no longer supported, since painting is only supported from within a paint event handler. This function does nothing.</p>
<p><b>See also </b><a href="qwidget.html#paintEvent">QWidget::paintEvent</a>().</p>
<!-- @@@lock -->
<!-- $$$locked[overload1]$$$locked -->
<h3 class="fn"><a name="locked"></a><span class="type">bool</span> QCoreApplication::<span class="name">locked</span> ()</h3>
<p>This function does nothing. It is there to keep old code working. It always returns false.</p>
<p>See <a href="qcoreapplication-qt3.html#lock">lock</a>() for details.</p>
<!-- @@@locked -->
<!-- $$$loopLevel[overload1]$$$loopLevel -->
<h3 class="fn"><a name="loopLevel"></a><span class="type">int</span> QCoreApplication::<span class="name">loopLevel</span> ()<tt> [static]</tt></h3>
<p>Returns the current loop level.</p>
<!-- @@@loopLevel -->
<!-- $$$processOneEvent[overload1]$$$processOneEvent -->
<h3 class="fn"><a name="processOneEvent"></a><span class="type">void</span> QCoreApplication::<span class="name">processOneEvent</span> ()<tt> [static]</tt></h3>
<p>Waits for an event to occur, processes it, then returns.</p>
<p>This function is useful for adapting Qt to situations where the event processing must be grafted onto existing program loops.</p>
<p>Using this function in new applications may be an indication of design problems.</p>
<p><b>See also </b><a href="qcoreapplication.html#processEvents">processEvents</a>(), <a href="qcoreapplication.html#exec">exec</a>(), and <a href="qtimer.html">QTimer</a>.</p>
<!-- @@@processOneEvent -->
<!-- $$$tryLock[overload1]$$$tryLock -->
<h3 class="fn"><a name="tryLock"></a><span class="type">bool</span> QCoreApplication::<span class="name">tryLock</span> ()</h3>
<p>This function does nothing. It is there to keep old code working. It always returns false.</p>
<p>See <a href="qcoreapplication-qt3.html#lock">lock</a>() for details.</p>
<!-- @@@tryLock -->
<!-- $$$unlock[overload1]$$$unlockbool -->
<h3 class="fn"><a name="unlock"></a><span class="type">void</span> QCoreApplication::<span class="name">unlock</span> ( <span class="type">bool</span> <i>wakeUpGui</i> = true )</h3>
<p>In Qt 3, this function unlocked the Qt library mutex. The mutex allowed non-GUI threads to perform basic printing operations using <a href="qpainter.html">QPainter</a>.</p>
<p>In Qt 4, this is no longer supported, since painting is only supported from within a paint event handler. This function does nothing.</p>
<!-- @@@unlock -->
<div class="ft">
<span></span>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2012 Nokia Corporation and/or its
subsidiaries. Documentation contributions included herein are the copyrights of
their respective owners.</p>
<br />
<p>
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.</p>
<p>
Documentation sources may be obtained from <a href="http://www.qt-project.org">
www.qt-project.org</a>.</p>
<br />
<p>
Nokia, Qt and their respective logos are trademarks of Nokia Corporation
in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. <a title="Privacy Policy"
href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
</div>
</body>
</html>
|