~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to doc/html/exportedfunctions.html

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-11-02 18:30:08 UTC
  • mfrom: (1.2.2 upstream)
  • mto: (15.2.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 88.
  • Revision ID: james.westby@ubuntu.com-20091102183008-b6a4gcs128mvfb3m
Tags: upstream-4.6.0~beta1
ImportĀ upstreamĀ versionĀ 4.6.0~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
<!DOCTYPE html
3
3
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
 
<!-- /fasttmp/mkdist-qt-4.5.2-1245473805/qt-x11-opensource-src-4.5.2/doc/src/exportedfunctions.qdoc -->
 
5
<!-- exportedfunctions.qdoc -->
6
6
<head>
7
 
  <title>Qt 4.5: Special-Purpose Global Functions Exported by Qt</title>
 
7
  <title>Qt 4.6: Platform-Specific Functions</title>
8
8
  <link href="classic.css" rel="stylesheet" type="text/css" />
9
9
</head>
10
10
<body>
11
11
<table border="0" cellpadding="0" cellspacing="0" width="100%">
12
12
<tr>
13
 
<td align="left" valign="top" width="32"><a href="http://qtsoftware.com/products/qt"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
14
 
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="namespaces.html"><font color="#004faf">All&nbsp;Namespaces</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
15
 
<td align="right" valign="top" width="230"></td></tr></table><h1 class="title">Special-Purpose Global Functions Exported by Qt<br /><span class="subtitle"></span>
 
13
<td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
 
14
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">All&nbsp;Functions</font></a>&nbsp;&middot; <a href="overviews.html"><font color="#004faf">Overviews</font></a></td><td class="searchBar" align="right" valign="center"><form action="http://www.google.com/cse" id="cse-search-box"><div><input type="hidden" name="cx" value="000136343326384750312:dhbxnqlakyu" /><input type="hidden" name="ie" value="UTF-8" /><input type="text" name="q" size="31" /><input type="submit" name="sa" value="Search" /></div></form></td>
 
15
</tr></table><h1 class="title">Platform-Specific Functions<br /><span class="subtitle"></span>
16
16
</h1>
17
17
<p>Qt provides a few low-level global functions for fine-tuning applications. Most of these perform very specific tasks and are platform-specific. In general, we recommend that you try using Qt's public API before resorting to using any functions mentioned here.</p>
18
18
<p>These functions are exported by <a href="qtcore.html">QtCore</a> and <a href="qtgui.html">QtGui</a>, but most of them aren't declared in Qt's header files. To use them in your application, you must declare them before calling them. For example:</p>
44
44
<li><a href="#void-qt-mac-set-press-and-hold-context-bool-enable">void qt_mac_set_press_and_hold_context(bool <i>enable</i>)</a></li>
45
45
</ul>
46
46
<a name="void-qt-set-library-config-file-const-qstring-filename"></a>
47
 
<h2>void qt_set_library_config_file(const QString &amp;<i>fileName</i>)</h2>
 
47
<h3>void qt_set_library_config_file(const QString &amp;<i>fileName</i>)</h3>
48
48
<p>Specifies the location of the Qt configuration file. You must call this function before constructing a <a href="qapplication.html">QApplication</a> or <a href="qcoreapplication.html">QCoreApplication</a> object. If no location is specified, Qt automatically finds an appropriate location.</p>
49
49
<a name="void-qt-set-sequence-auto-mnemonic-bool-enable"></a>
50
 
<h2>void qt_set_sequence_auto_mnemonic(bool <i>enable</i>)</h2>
 
50
<h3>void qt_set_sequence_auto_mnemonic(bool <i>enable</i>)</h3>
51
51
<p>Specifies whether mnemonics for menu items, labels, etc., should be honored or not. On Windows and X11, this feature is on by default; on Mac OS X, it is off. When this feature is off, the <a href="qkeysequence.html#mnemonic">QKeySequence::mnemonic</a>() function always returns an empty string. This feature is also enabled on embedded Linux.</p>
52
52
<a name="void-qt-x11-wait-for-window-manager-qwidget-widget"></a>
53
 
<h2>void qt_x11_wait_for_window_manager(QWidget *<i>widget</i>)</h2>
 
53
<h3>void qt_x11_wait_for_window_manager(QWidget *<i>widget</i>)</h3>
54
54
<p>Blocks until the X11 window manager has shown the widget after a call to <a href="qwidget.html#show">QWidget::show</a>().</p>
55
55
<a name="void-qt-mac-secure-keyboard-bool-enable"></a>
56
 
<h2>void qt_mac_secure_keyboard(bool <i>enable</i>)</h2>
 
56
<h3>void qt_mac_secure_keyboard(bool <i>enable</i>)</h3>
57
57
<p>Turns the Mac OS X secure keyboard feature on or off. <a href="qlineedit.html">QLineEdit</a> uses this when the echo mode is <a href="qlineedit.html#EchoMode-enum">QLineEdit::Password</a> or <a href="qlineedit.html#EchoMode-enum">QLineEdit::NoEcho</a> to guard the editor against keyboard sniffing. If you implement your own password editor, you might want to turn on this feature in your editor's <a href="qwidget.html#focusInEvent">focusInEvent()</a> and turn it off in <a href="qwidget.html#focusOutEvent">focusOutEvent()</a>.</p>
58
58
<a name="void-qt-mac-set-dock-menu-qmenu-menu"></a>
59
 
<h2>void qt_mac_set_dock_menu(QMenu *<i>menu</i>)</h2>
 
59
<h3>void qt_mac_set_dock_menu(QMenu *<i>menu</i>)</h3>
60
60
<p>Sets the menu to display in the Mac OS X Dock for the application. This menu is shown when the user attempts a press-and-hold operation on the application's dock icon or <b>Ctrl</b>-clicks on it while the application is running.</p>
61
61
<p>The menu will be turned into a Mac menu and the items added to the default Dock menu. There is no merging of the Qt menu items with the items that are in the Dock menu (i.e&#x2e;, it is not recommended to include actions that duplicate functionality of items already in the Dock menu).</p>
62
62
<a name="void-qt-mac-set-menubar-icons-bool-enable"></a>
63
 
<h2>void qt_mac_set_menubar_icons(bool <i>enable</i>)</h2>
 
63
<h3>void qt_mac_set_menubar_icons(bool <i>enable</i>)</h3>
64
64
<p>Specifies whether icons associated to menu items for the application's menu bar should be shown on Mac OS X. By default, icons are shown on Mac OS X just like on the other platforms.</p>
65
65
<p>In Qt 4.4, this is equivalent to <tt>QApplication::instance()-&gt;setAttribute(Qt::AA_DontShowIconsInMenus);</tt>.</p>
66
66
<a name="void-qt-mac-set-menubar-merge-bool-enable"></a>
67
 
<h2>void qt_mac_set_menubar_merge(bool <i>enable</i>)</h2>
 
67
<h3>void qt_mac_set_menubar_merge(bool <i>enable</i>)</h3>
68
68
<p>Specifies whether Qt should attempt to relocate standard menu items (such as <b>Quit</b>, <b>Preferences</b>, and <b>About</b>) to the application menu on Mac OS X. This feature is on by default. See <a href="mac-differences.html">Qt for Mac OS X - Specific Issues</a> for the list of menu items for which this applies.</p>
69
69
<a name="void-qt-mac-set-native-menubar-bool-enable"></a>
70
 
<h2>void qt_mac_set_native_menubar(bool <i>enable</i>)</h2>
 
70
<h3>void qt_mac_set_native_menubar(bool <i>enable</i>)</h3>
71
71
<p>Specifies whether the application should use the native menu bar on Mac OS X or be part of the main window. This feature is on by default.</p>
 
72
<p>In Qt 4.6, this is equivalent to <tt>QApplication::instance()-&gt;setAttribute(Qt::AA_DontUseNativeMenuBar);</tt>.</p>
72
73
<a name="void-qt-mac-set-press-and-hold-context-bool-enable"></a>
73
 
<h2>void qt_mac_set_press_and_hold_context(bool <i>enable</i>)</h2>
 
74
<h3>void qt_mac_set_press_and_hold_context(bool <i>enable</i>)</h3>
74
75
<p>Turns emulation of the right mouse button by clicking and holding the left mouse button on or off. This feature is off by default.</p>
75
76
<p /><address><hr /><div align="center">
76
77
<table width="100%" cellspacing="0" border="0"><tr class="address">
77
 
<td width="30%" align="left">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies)</td>
78
 
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
79
 
<td width="30%" align="right"><div align="right">Qt 4.5.2</div></td>
80
 
</tr></table></div></address></body>
 
78
<td width="40%" align="left">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies)</td>
 
79
<td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td>
 
80
<td width="40%" align="right"><div align="right">Qt 4.6.0</div></td>
 
81
<script type="text/javascript" src="http://www.google.com/jsapi"></script><script type="text/javascript">google.load("elements", "1", {packages: "transliteration"});</script><script type="text/javascript" src="http://www.google.com/coop/cse/t13n?form=cse-search-box&t13n_langs=en"></script><script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script></tr></table></div></address></body>
81
82
</html>