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 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364
|
<?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" />
<!-- qmenu.cpp -->
<title>Qt 4.8: Qt 3 Support Members for QMenu</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="qtgui.html">QtGui</a></li>
<li>QMenu</li>
</ul>
</div>
</div>
<div class="content mainContent">
<h1 class="title">Qt 3 Support Members for QMenu</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="qmenu.html">QMenu class reference</a></li></ul></p>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QKeySequence </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#accel">accel</a></b> ( int <i>id</i> ) const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#activateItemAt">activateItemAt</a></b> ( int <i>index</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#changeItem">changeItem</a></b> ( int <i>id</i>, const QString & <i>text</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#changeItem-2">changeItem</a></b> ( int <i>id</i>, const QPixmap & <i>pixmap</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#changeItem-3">changeItem</a></b> ( int <i>id</i>, const QIcon & <i>icon</i>, const QString & <i>text</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#connectItem">connectItem</a></b> ( int <i>id</i>, const QObject * <i>receiver</i>, const char * <i>member</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> uint </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#count">count</a></b> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#disconnectItem">disconnectItem</a></b> ( int <i>id</i>, const QObject * <i>receiver</i>, const char * <i>member</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> QMenuItem * </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#findItem">findItem</a></b> ( int <i>id</i> ) const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> QMenuItem * </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#findPopup">findPopup</a></b> ( QMenu * <i>popup</i>, int * <i>index</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#frameWidth">frameWidth</a></b> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> QIcon </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#iconSet">iconSet</a></b> ( int <i>id</i> ) const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#idAt">idAt</a></b> ( int <i>index</i> ) const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#indexOf">indexOf</a></b> ( int <i>id</i> ) const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#insertItem">insertItem</a></b> ( const QString & <i>text</i>, const QObject * <i>receiver</i>, const char * <i>member</i>, const QKeySequence & <i>shortcut</i> = 0, int <i>id</i> = -1, int <i>index</i> = -1 )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#insertItem-2">insertItem</a></b> ( const QIcon & <i>icon</i>, const QString & <i>text</i>, const QObject * <i>receiver</i>, const char * <i>member</i>, const QKeySequence & <i>shortcut</i> = 0, int <i>id</i> = -1, int <i>index</i> = -1 )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#insertItem-3">insertItem</a></b> ( const QPixmap & <i>pixmap</i>, const QObject * <i>receiver</i>, const char * <i>member</i>, const QKeySequence & <i>shortcut</i> = 0, int <i>id</i> = -1, int <i>index</i> = -1 )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#insertItem-4">insertItem</a></b> ( const QString & <i>text</i>, int <i>id</i> = -1, int <i>index</i> = -1 )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#insertItem-5">insertItem</a></b> ( const QIcon & <i>icon</i>, const QString & <i>text</i>, int <i>id</i> = -1, int <i>index</i> = -1 )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#insertItem-6">insertItem</a></b> ( const QString & <i>text</i>, QMenu * <i>popup</i>, int <i>id</i> = -1, int <i>index</i> = -1 )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#insertItem-7">insertItem</a></b> ( const QIcon & <i>icon</i>, const QString & <i>text</i>, QMenu * <i>popup</i>, int <i>id</i> = -1, int <i>index</i> = -1 )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#insertItem-8">insertItem</a></b> ( const QPixmap & <i>pixmap</i>, int <i>id</i> = -1, int <i>index</i> = -1 )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#insertItem-9">insertItem</a></b> ( const QPixmap & <i>pixmap</i>, QMenu * <i>popup</i>, int <i>id</i> = -1, int <i>index</i> = -1 )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#insertItem-10">insertItem</a></b> ( QMenuItem * <i>item</i>, int <i>id</i> = -1, int <i>index</i> = -1 )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#insertSeparator-2">insertSeparator</a></b> ( int <i>index</i> = -1 )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#insertTearOffHandle">insertTearOffHandle</a></b> ( int <i>a</i> = 0, int <i>b</i> = 0 )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#isCheckable">isCheckable</a></b> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#isItemActive">isItemActive</a></b> ( int <i>id</i> ) const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#isItemChecked">isItemChecked</a></b> ( int <i>id</i> ) const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#isItemEnabled">isItemEnabled</a></b> ( int <i>id</i> ) const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#isItemVisible">isItemVisible</a></b> ( int <i>id</i> ) const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> QFont </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#itemFont">itemFont</a></b> ( int <i>id</i> ) const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> QRect </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#itemGeometry">itemGeometry</a></b> ( int <i>index</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#itemParameter">itemParameter</a></b> ( int <i>id</i> ) const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> QPixmap </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#pixmap">pixmap</a></b> ( int <i>id</i> ) const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#popup-2">popup</a></b> ( const QPoint & <i>pos</i>, int <i>indexAtPoint</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#removeItem">removeItem</a></b> ( int <i>id</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#removeItemAt">removeItemAt</a></b> ( int <i>index</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#setAccel">setAccel</a></b> ( const QKeySequence & <i>key</i>, int <i>id</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#setActiveItem">setActiveItem</a></b> ( int <i>id</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#setCheckable">setCheckable</a></b> ( bool <i>checkable</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#setId">setId</a></b> ( int <i>index</i>, int <i>id</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#setItemChecked">setItemChecked</a></b> ( int <i>id</i>, bool <i>check</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#setItemEnabled">setItemEnabled</a></b> ( int <i>id</i>, bool <i>enable</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#setItemFont">setItemFont</a></b> ( int <i>id</i>, const QFont & <i>font</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#setItemParameter">setItemParameter</a></b> ( int <i>id</i>, int <i>param</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#setItemVisible">setItemVisible</a></b> ( int <i>id</i>, bool <i>visible</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#setWhatsThis">setWhatsThis</a></b> ( int <i>id</i>, const QString & <i>w</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#text">text</a></b> ( int <i>id</i> ) const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#whatsThis">whatsThis</a></b> ( int <i>id</i> ) const</td></tr>
</table>
<ul>
<li class="fn">60 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
<li class="fn">8 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
<li class="fn">8 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
</ul>
<h2>Signals</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#activated">activated</a></b> ( int <i>itemId</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#highlighted">highlighted</a></b> ( int <i>itemId</i> )</td></tr>
</table>
<h2>Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#columns">columns</a></b> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#itemAtPos">itemAtPos</a></b> ( const QPoint & <i>p</i>, bool <i>ignoreSeparator</i> = true )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#itemHeight">itemHeight</a></b> ( int <i>index</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmenu-qt3.html#itemHeight-2">itemHeight</a></b> ( QMenuItem * <i>mi</i> )</td></tr>
</table>
<ul>
<li class="fn">1 protected function inherited from <a href="qobject.html#protected-functions">QObject</a></li>
</ul>
<h2>Member Function Documentation</h2>
<!-- $$$accel[overload1]$$$accelint -->
<h3 class="fn"><a name="accel"></a><span class="type"><a href="qkeysequence.html">QKeySequence</a></span> QMenu::<span class="name">accel</span> ( <span class="type">int</span> <i>id</i> ) const</h3>
<p>Use shortcut() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<p><b>See also </b><a href="qmenu-qt3.html#setAccel">setAccel</a>().</p>
<!-- @@@accel -->
<!-- $$$activateItemAt[overload1]$$$activateItemAtint -->
<h3 class="fn"><a name="activateItemAt"></a><span class="type">void</span> QMenu::<span class="name">activateItemAt</span> ( <span class="type">int</span> <i>index</i> )</h3>
<p>Use activate() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<!-- @@@activateItemAt -->
<!-- $$$activated[overload1]$$$activatedint -->
<h3 class="fn"><a name="activated"></a><span class="type">void</span> QMenu::<span class="name">activated</span> ( <span class="type">int</span> <i>itemId</i> )<tt> [signal]</tt></h3>
<p>Use <a href="qmenu.html#triggered">triggered</a>() instead.</p>
<!-- @@@activated -->
<!-- $$$changeItem[overload1]$$$changeItemintconstQString& -->
<h3 class="fn"><a name="changeItem"></a><span class="type">void</span> QMenu::<span class="name">changeItem</span> ( <span class="type">int</span> <i>id</i>, const <span class="type"><a href="qstring.html">QString</a></span> & <i>text</i> )</h3>
<p>Use setText() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<!-- @@@changeItem -->
<!-- $$$changeItem$$$changeItemintconstQPixmap& -->
<h3 class="fn"><a name="changeItem-2"></a><span class="type">void</span> QMenu::<span class="name">changeItem</span> ( <span class="type">int</span> <i>id</i>, const <span class="type"><a href="qpixmap.html">QPixmap</a></span> & <i>pixmap</i> )</h3>
<p>Use setText() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<!-- @@@changeItem -->
<!-- $$$changeItem$$$changeItemintconstQIcon&constQString& -->
<h3 class="fn"><a name="changeItem-3"></a><span class="type">void</span> QMenu::<span class="name">changeItem</span> ( <span class="type">int</span> <i>id</i>, const <span class="type"><a href="qicon.html">QIcon</a></span> & <i>icon</i>, const <span class="type"><a href="qstring.html">QString</a></span> & <i>text</i> )</h3>
<p>Use <a href="qmenu.html#icon-prop">setIcon</a>() and setText() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<!-- @@@changeItem -->
<!-- $$$columns[overload1]$$$columns -->
<h3 class="fn"><a name="columns"></a><span class="type">int</span> QMenu::<span class="name">columns</span> () const<tt> [protected]</tt></h3>
<p>Use <a href="qmenu.html#columnCount">columnCount</a>() instead.</p>
<!-- @@@columns -->
<!-- $$$connectItem[overload1]$$$connectItemintconstQObject*constchar* -->
<h3 class="fn"><a name="connectItem"></a><span class="type">bool</span> QMenu::<span class="name">connectItem</span> ( <span class="type">int</span> <i>id</i>, const <span class="type"><a href="qobject.html">QObject</a></span> * <i>receiver</i>, const <span class="type">char</span> * <i>member</i> )</h3>
<p>Use <a href="qobject.html#connect">connect</a>() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<!-- @@@connectItem -->
<!-- $$$count[overload1]$$$count -->
<h3 class="fn"><a name="count"></a><span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> QMenu::<span class="name">count</span> () const</h3>
<p>Use <a href="qwidget.html#actions">actions</a>().count() instead.</p>
<!-- @@@count -->
<!-- $$$disconnectItem[overload1]$$$disconnectItemintconstQObject*constchar* -->
<h3 class="fn"><a name="disconnectItem"></a><span class="type">bool</span> QMenu::<span class="name">disconnectItem</span> ( <span class="type">int</span> <i>id</i>, const <span class="type"><a href="qobject.html">QObject</a></span> * <i>receiver</i>, const <span class="type">char</span> * <i>member</i> )</h3>
<p>Use <a href="qobject.html#disconnect">disconnect</a>() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<!-- @@@disconnectItem -->
<!-- $$$findItem[overload1]$$$findItemint -->
<h3 class="fn"><a name="findItem"></a><span class="type"><a href="qmenuitem.html">QMenuItem</a></span> * QMenu::<span class="name">findItem</span> ( <span class="type">int</span> <i>id</i> ) const</h3>
<p>Use actions instead.</p>
<!-- @@@findItem -->
<!-- $$$findPopup[overload1]$$$findPopupQMenu*int* -->
<h3 class="fn"><a name="findPopup"></a><span class="type"><a href="qmenuitem.html">QMenuItem</a></span> * QMenu::<span class="name">findPopup</span> ( <span class="type">QMenu</span> * <i>popup</i>, <span class="type">int</span> * <i>index</i> )</h3>
<p>Use <a href="qaction.html">QAction</a> and <a href="qwidget.html#actions">actions</a>() instead.</p>
<!-- @@@findPopup -->
<!-- $$$frameWidth[overload1]$$$frameWidth -->
<h3 class="fn"><a name="frameWidth"></a><span class="type">int</span> QMenu::<span class="name">frameWidth</span> () const</h3>
<p>Use <a href="qwidget.html#style">style</a>()->pixelMetric(<a href="qstyle.html#PixelMetric-enum">QStyle::PM_MenuPanelWidth</a>, this) instead.</p>
<!-- @@@frameWidth -->
<!-- $$$highlighted[overload1]$$$highlightedint -->
<h3 class="fn"><a name="highlighted"></a><span class="type">void</span> QMenu::<span class="name">highlighted</span> ( <span class="type">int</span> <i>itemId</i> )<tt> [signal]</tt></h3>
<p>Use <a href="qmenu.html#hovered">hovered</a>() instead.</p>
<!-- @@@highlighted -->
<!-- $$$iconSet[overload1]$$$iconSetint -->
<h3 class="fn"><a name="iconSet"></a><span class="type"><a href="qicon.html">QIcon</a></span> QMenu::<span class="name">iconSet</span> ( <span class="type">int</span> <i>id</i> ) const</h3>
<p>Use <a href="qmenu.html#icon-prop">icon</a>() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<!-- @@@iconSet -->
<!-- $$$idAt[overload1]$$$idAtint -->
<h3 class="fn"><a name="idAt"></a><span class="type">int</span> QMenu::<span class="name">idAt</span> ( <span class="type">int</span> <i>index</i> ) const</h3>
<p>Use actions instead.</p>
<!-- @@@idAt -->
<!-- $$$indexOf[overload1]$$$indexOfint -->
<h3 class="fn"><a name="indexOf"></a><span class="type">int</span> QMenu::<span class="name">indexOf</span> ( <span class="type">int</span> <i>id</i> ) const</h3>
<p>Use <a href="qwidget.html#actions">actions</a>().indexOf(action) on the relevant <a href="qaction.html">QAction</a> instead.</p>
<!-- @@@indexOf -->
<!-- $$$insertItem[overload1]$$$insertItemconstQString&constQObject*constchar*constQKeySequence&intint -->
<h3 class="fn"><a name="insertItem"></a><span class="type">int</span> QMenu::<span class="name">insertItem</span> ( const <span class="type"><a href="qstring.html">QString</a></span> & <i>text</i>, const <span class="type"><a href="qobject.html">QObject</a></span> * <i>receiver</i>, const <span class="type">char</span> * <i>member</i>, const <span class="type"><a href="qkeysequence.html">QKeySequence</a></span> & <i>shortcut</i> = 0, <span class="type">int</span> <i>id</i> = -1, <span class="type">int</span> <i>index</i> = -1 )</h3>
<p>Use <a href="qwidget.html#insertAction">insertAction</a>() or one of the <a href="qmenu.html#addAction">addAction</a>() overloads instead.</p>
<!-- @@@insertItem -->
<!-- $$$insertItem$$$insertItemconstQIcon&constQString&constQObject*constchar*constQKeySequence&intint -->
<h3 class="fn"><a name="insertItem-2"></a><span class="type">int</span> QMenu::<span class="name">insertItem</span> ( const <span class="type"><a href="qicon.html">QIcon</a></span> & <i>icon</i>, const <span class="type"><a href="qstring.html">QString</a></span> & <i>text</i>, const <span class="type"><a href="qobject.html">QObject</a></span> * <i>receiver</i>, const <span class="type">char</span> * <i>member</i>, const <span class="type"><a href="qkeysequence.html">QKeySequence</a></span> & <i>shortcut</i> = 0, <span class="type">int</span> <i>id</i> = -1, <span class="type">int</span> <i>index</i> = -1 )</h3>
<p>Use <a href="qwidget.html#insertAction">insertAction</a>() or one of the <a href="qmenu.html#addAction">addAction</a>() overloads instead.</p>
<!-- @@@insertItem -->
<!-- $$$insertItem$$$insertItemconstQPixmap&constQObject*constchar*constQKeySequence&intint -->
<h3 class="fn"><a name="insertItem-3"></a><span class="type">int</span> QMenu::<span class="name">insertItem</span> ( const <span class="type"><a href="qpixmap.html">QPixmap</a></span> & <i>pixmap</i>, const <span class="type"><a href="qobject.html">QObject</a></span> * <i>receiver</i>, const <span class="type">char</span> * <i>member</i>, const <span class="type"><a href="qkeysequence.html">QKeySequence</a></span> & <i>shortcut</i> = 0, <span class="type">int</span> <i>id</i> = -1, <span class="type">int</span> <i>index</i> = -1 )</h3>
<p>Use <a href="qwidget.html#insertAction">insertAction</a>() or one of the <a href="qmenu.html#addAction">addAction</a>() overloads instead.</p>
<!-- @@@insertItem -->
<!-- $$$insertItem$$$insertItemconstQString&intint -->
<h3 class="fn"><a name="insertItem-4"></a><span class="type">int</span> QMenu::<span class="name">insertItem</span> ( const <span class="type"><a href="qstring.html">QString</a></span> & <i>text</i>, <span class="type">int</span> <i>id</i> = -1, <span class="type">int</span> <i>index</i> = -1 )</h3>
<p>Use <a href="qwidget.html#insertAction">insertAction</a>() or one of the <a href="qmenu.html#addAction">addAction</a>() overloads instead.</p>
<!-- @@@insertItem -->
<!-- $$$insertItem$$$insertItemconstQIcon&constQString&intint -->
<h3 class="fn"><a name="insertItem-5"></a><span class="type">int</span> QMenu::<span class="name">insertItem</span> ( const <span class="type"><a href="qicon.html">QIcon</a></span> & <i>icon</i>, const <span class="type"><a href="qstring.html">QString</a></span> & <i>text</i>, <span class="type">int</span> <i>id</i> = -1, <span class="type">int</span> <i>index</i> = -1 )</h3>
<p>Use <a href="qwidget.html#insertAction">insertAction</a>() or one of the <a href="qmenu.html#addAction">addAction</a>() overloads instead.</p>
<!-- @@@insertItem -->
<!-- $$$insertItem$$$insertItemconstQString&QMenu*intint -->
<h3 class="fn"><a name="insertItem-6"></a><span class="type">int</span> QMenu::<span class="name">insertItem</span> ( const <span class="type"><a href="qstring.html">QString</a></span> & <i>text</i>, <span class="type">QMenu</span> * <i>popup</i>, <span class="type">int</span> <i>id</i> = -1, <span class="type">int</span> <i>index</i> = -1 )</h3>
<p>Use <a href="qmenu.html#insertMenu">insertMenu</a>() or one of the <a href="qmenu.html#addMenu">addMenu</a>() overloads instead.</p>
<!-- @@@insertItem -->
<!-- $$$insertItem$$$insertItemconstQIcon&constQString&QMenu*intint -->
<h3 class="fn"><a name="insertItem-7"></a><span class="type">int</span> QMenu::<span class="name">insertItem</span> ( const <span class="type"><a href="qicon.html">QIcon</a></span> & <i>icon</i>, const <span class="type"><a href="qstring.html">QString</a></span> & <i>text</i>, <span class="type">QMenu</span> * <i>popup</i>, <span class="type">int</span> <i>id</i> = -1, <span class="type">int</span> <i>index</i> = -1 )</h3>
<p>Use <a href="qmenu.html#insertMenu">insertMenu</a>() or one of the <a href="qmenu.html#addMenu">addMenu</a>() overloads instead.</p>
<!-- @@@insertItem -->
<!-- $$$insertItem$$$insertItemconstQPixmap&intint -->
<h3 class="fn"><a name="insertItem-8"></a><span class="type">int</span> QMenu::<span class="name">insertItem</span> ( const <span class="type"><a href="qpixmap.html">QPixmap</a></span> & <i>pixmap</i>, <span class="type">int</span> <i>id</i> = -1, <span class="type">int</span> <i>index</i> = -1 )</h3>
<p>Use <a href="qwidget.html#insertAction">insertAction</a>() or one of the <a href="qmenu.html#addAction">addAction</a>() overloads instead.</p>
<!-- @@@insertItem -->
<!-- $$$insertItem$$$insertItemconstQPixmap&QMenu*intint -->
<h3 class="fn"><a name="insertItem-9"></a><span class="type">int</span> QMenu::<span class="name">insertItem</span> ( const <span class="type"><a href="qpixmap.html">QPixmap</a></span> & <i>pixmap</i>, <span class="type">QMenu</span> * <i>popup</i>, <span class="type">int</span> <i>id</i> = -1, <span class="type">int</span> <i>index</i> = -1 )</h3>
<p>Use <a href="qmenu.html#insertMenu">insertMenu</a>() or one of the <a href="qmenu.html#addMenu">addMenu</a>() overloads instead.</p>
<!-- @@@insertItem -->
<!-- $$$insertItem$$$insertItemQMenuItem*intint -->
<h3 class="fn"><a name="insertItem-10"></a><span class="type">int</span> QMenu::<span class="name">insertItem</span> ( <span class="type"><a href="qmenuitem.html">QMenuItem</a></span> * <i>item</i>, <span class="type">int</span> <i>id</i> = -1, <span class="type">int</span> <i>index</i> = -1 )</h3>
<p>Use <a href="qwidget.html#insertAction">insertAction</a>() or one of the <a href="qmenu.html#addAction">addAction</a>() overloads instead.</p>
<!-- @@@insertItem -->
<!-- $$$insertSeparator$$$insertSeparatorint -->
<h3 class="fn"><a name="insertSeparator-2"></a><span class="type">int</span> QMenu::<span class="name">insertSeparator</span> ( <span class="type">int</span> <i>index</i> = -1 )</h3>
<p>Use the <a href="qmenu.html#insertSeparator">insertSeparator</a>() overload that takes a <a href="qaction.html">QAction</a> * parameter instead.</p>
<!-- @@@insertSeparator -->
<!-- $$$insertTearOffHandle[overload1]$$$insertTearOffHandleintint -->
<h3 class="fn"><a name="insertTearOffHandle"></a><span class="type">int</span> QMenu::<span class="name">insertTearOffHandle</span> ( <span class="type">int</span> <i>a</i> = 0, <span class="type">int</span> <i>b</i> = 0 )</h3>
<p>Use <a href="qmenu.html#tearOffEnabled-prop">setTearOffEnabled</a>() instead.</p>
<!-- @@@insertTearOffHandle -->
<!-- $$$isCheckable[overload1]$$$isCheckable -->
<h3 class="fn"><a name="isCheckable"></a><span class="type">bool</span> QMenu::<span class="name">isCheckable</span> () const</h3>
<p>Not necessary anymore. Always returns true.</p>
<!-- @@@isCheckable -->
<!-- $$$isItemActive[overload1]$$$isItemActiveint -->
<h3 class="fn"><a name="isItemActive"></a><span class="type">bool</span> QMenu::<span class="name">isItemActive</span> ( <span class="type">int</span> <i>id</i> ) const</h3>
<p>Use <a href="qmenu.html#activeAction">activeAction</a>() instead.</p>
<!-- @@@isItemActive -->
<!-- $$$isItemChecked[overload1]$$$isItemCheckedint -->
<h3 class="fn"><a name="isItemChecked"></a><span class="type">bool</span> QMenu::<span class="name">isItemChecked</span> ( <span class="type">int</span> <i>id</i> ) const</h3>
<p>Use isChecked() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<!-- @@@isItemChecked -->
<!-- $$$isItemEnabled[overload1]$$$isItemEnabledint -->
<h3 class="fn"><a name="isItemEnabled"></a><span class="type">bool</span> QMenu::<span class="name">isItemEnabled</span> ( <span class="type">int</span> <i>id</i> ) const</h3>
<p>Use <a href="qwidget.html#enabled-prop">isEnabled</a>() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<!-- @@@isItemEnabled -->
<!-- $$$isItemVisible[overload1]$$$isItemVisibleint -->
<h3 class="fn"><a name="isItemVisible"></a><span class="type">bool</span> QMenu::<span class="name">isItemVisible</span> ( <span class="type">int</span> <i>id</i> ) const</h3>
<p>Use <a href="qwidget.html#visible-prop">isVisible</a>() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<!-- @@@isItemVisible -->
<!-- $$$itemAtPos[overload1]$$$itemAtPosconstQPoint&bool -->
<h3 class="fn"><a name="itemAtPos"></a><span class="type">int</span> QMenu::<span class="name">itemAtPos</span> ( const <span class="type"><a href="qpoint.html">QPoint</a></span> & <i>p</i>, <span class="type">bool</span> <i>ignoreSeparator</i> = true )<tt> [protected]</tt></h3>
<p>Use actions instead.</p>
<!-- @@@itemAtPos -->
<!-- $$$itemFont[overload1]$$$itemFontint -->
<h3 class="fn"><a name="itemFont"></a><span class="type"><a href="qfont.html">QFont</a></span> QMenu::<span class="name">itemFont</span> ( <span class="type">int</span> <i>id</i> ) const</h3>
<p>Use <a href="qwidget.html#font-prop">font</a>() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<p><b>See also </b><a href="qmenu-qt3.html#setItemFont">setItemFont</a>().</p>
<!-- @@@itemFont -->
<!-- $$$itemGeometry[overload1]$$$itemGeometryint -->
<h3 class="fn"><a name="itemGeometry"></a><span class="type"><a href="qrect.html">QRect</a></span> QMenu::<span class="name">itemGeometry</span> ( <span class="type">int</span> <i>index</i> )</h3>
<p>Use <a href="qmenu.html#actionGeometry">actionGeometry</a>() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<!-- @@@itemGeometry -->
<!-- $$$itemHeight[overload1]$$$itemHeightint -->
<h3 class="fn"><a name="itemHeight"></a><span class="type">int</span> QMenu::<span class="name">itemHeight</span> ( <span class="type">int</span> <i>index</i> )<tt> [protected]</tt></h3>
<p>Use actionGeometry(<a href="qwidget.html#actions">actions</a>().value(index)).<a href="qwidget.html#height-prop">height</a>() instead.</p>
<!-- @@@itemHeight -->
<!-- $$$itemHeight$$$itemHeightQMenuItem* -->
<h3 class="fn"><a name="itemHeight-2"></a><span class="type">int</span> QMenu::<span class="name">itemHeight</span> ( <span class="type"><a href="qmenuitem.html">QMenuItem</a></span> * <i>mi</i> )<tt> [protected]</tt></h3>
<p>Use <a href="qmenu.html#actionGeometry">actionGeometry</a>() instead.</p>
<!-- @@@itemHeight -->
<!-- $$$itemParameter[overload1]$$$itemParameterint -->
<h3 class="fn"><a name="itemParameter"></a><span class="type">int</span> QMenu::<span class="name">itemParameter</span> ( <span class="type">int</span> <i>id</i> ) const</h3>
<p>Use <a href="qaction.html#data">QAction::data</a>() instead.</p>
<p><b>See also </b><a href="qmenu-qt3.html#setItemParameter">setItemParameter</a>().</p>
<!-- @@@itemParameter -->
<!-- $$$pixmap[overload1]$$$pixmapint -->
<h3 class="fn"><a name="pixmap"></a><span class="type"><a href="qpixmap.html">QPixmap</a></span> QMenu::<span class="name">pixmap</span> ( <span class="type">int</span> <i>id</i> ) const</h3>
<p>Use <a href="qpixmap.html">QPixmap</a>(<a href="qmenu.html#icon-prop">icon</a>()) on the relevant <a href="qaction.html">QAction</a> instead.</p>
<!-- @@@pixmap -->
<!-- $$$popup$$$popupconstQPoint&int -->
<h3 class="fn"><a name="popup-2"></a><span class="type">void</span> QMenu::<span class="name">popup</span> ( const <span class="type"><a href="qpoint.html">QPoint</a></span> & <i>pos</i>, <span class="type">int</span> <i>indexAtPoint</i> )</h3>
<p>Use <a href="qmenu.html#popup">popup</a>() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<!-- @@@popup -->
<!-- $$$removeItem[overload1]$$$removeItemint -->
<h3 class="fn"><a name="removeItem"></a><span class="type">void</span> QMenu::<span class="name">removeItem</span> ( <span class="type">int</span> <i>id</i> )</h3>
<p>Use <a href="qwidget.html#removeAction">removeAction</a>() instead.</p>
<!-- @@@removeItem -->
<!-- $$$removeItemAt[overload1]$$$removeItemAtint -->
<h3 class="fn"><a name="removeItemAt"></a><span class="type">void</span> QMenu::<span class="name">removeItemAt</span> ( <span class="type">int</span> <i>index</i> )</h3>
<p>Use <a href="qwidget.html#removeAction">removeAction</a>() instead.</p>
<!-- @@@removeItemAt -->
<!-- $$$setAccel[overload1]$$$setAccelconstQKeySequence&int -->
<h3 class="fn"><a name="setAccel"></a><span class="type">void</span> QMenu::<span class="name">setAccel</span> ( const <span class="type"><a href="qkeysequence.html">QKeySequence</a></span> & <i>key</i>, <span class="type">int</span> <i>id</i> )</h3>
<p>Use setShortcut() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<p><b>See also </b><a href="qmenu-qt3.html#accel">accel</a>().</p>
<!-- @@@setAccel -->
<!-- $$$setActiveItem[overload1]$$$setActiveItemint -->
<h3 class="fn"><a name="setActiveItem"></a><span class="type">void</span> QMenu::<span class="name">setActiveItem</span> ( <span class="type">int</span> <i>id</i> )</h3>
<p>Use <a href="qmenu.html#setActiveAction">setActiveAction</a>() instead.</p>
<!-- @@@setActiveItem -->
<!-- $$$setCheckable[overload1]$$$setCheckablebool -->
<h3 class="fn"><a name="setCheckable"></a><span class="type">void</span> QMenu::<span class="name">setCheckable</span> ( <span class="type">bool</span> <i>checkable</i> )</h3>
<p>Not necessary anymore. The <i>checkable</i> parameter is ignored.</p>
<p><b>See also </b><a href="qmenu-qt3.html#isCheckable">isCheckable</a>().</p>
<!-- @@@setCheckable -->
<!-- $$$setId[overload1]$$$setIdintint -->
<h3 class="fn"><a name="setId"></a><span class="type">void</span> QMenu::<span class="name">setId</span> ( <span class="type">int</span> <i>index</i>, <span class="type">int</span> <i>id</i> )</h3>
<p>Use actions instead.</p>
<!-- @@@setId -->
<!-- $$$setItemChecked[overload1]$$$setItemCheckedintbool -->
<h3 class="fn"><a name="setItemChecked"></a><span class="type">void</span> QMenu::<span class="name">setItemChecked</span> ( <span class="type">int</span> <i>id</i>, <span class="type">bool</span> <i>check</i> )</h3>
<p>Use setChecked() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<p><b>See also </b><a href="qmenu-qt3.html#isItemChecked">isItemChecked</a>().</p>
<!-- @@@setItemChecked -->
<!-- $$$setItemEnabled[overload1]$$$setItemEnabledintbool -->
<h3 class="fn"><a name="setItemEnabled"></a><span class="type">void</span> QMenu::<span class="name">setItemEnabled</span> ( <span class="type">int</span> <i>id</i>, <span class="type">bool</span> <i>enable</i> )</h3>
<p>Use <a href="qwidget.html#enabled-prop">setEnabled</a>() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<p><b>See also </b><a href="qmenu-qt3.html#isItemEnabled">isItemEnabled</a>().</p>
<!-- @@@setItemEnabled -->
<!-- $$$setItemFont[overload1]$$$setItemFontintconstQFont& -->
<h3 class="fn"><a name="setItemFont"></a><span class="type">void</span> QMenu::<span class="name">setItemFont</span> ( <span class="type">int</span> <i>id</i>, const <span class="type"><a href="qfont.html">QFont</a></span> & <i>font</i> )</h3>
<p>Use <a href="qwidget.html#font-prop">setFont</a>() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<p><b>See also </b><a href="qmenu-qt3.html#itemFont">itemFont</a>().</p>
<!-- @@@setItemFont -->
<!-- $$$setItemParameter[overload1]$$$setItemParameterintint -->
<h3 class="fn"><a name="setItemParameter"></a><span class="type">bool</span> QMenu::<span class="name">setItemParameter</span> ( <span class="type">int</span> <i>id</i>, <span class="type">int</span> <i>param</i> )</h3>
<p>Use <a href="qaction.html#setData">QAction::setData</a>() instead.</p>
<p><b>See also </b><a href="qmenu-qt3.html#itemParameter">itemParameter</a>().</p>
<!-- @@@setItemParameter -->
<!-- $$$setItemVisible[overload1]$$$setItemVisibleintbool -->
<h3 class="fn"><a name="setItemVisible"></a><span class="type">void</span> QMenu::<span class="name">setItemVisible</span> ( <span class="type">int</span> <i>id</i>, <span class="type">bool</span> <i>visible</i> )</h3>
<p>Use <a href="qwidget.html#visible-prop">setVisible</a>() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<p><b>See also </b><a href="qmenu-qt3.html#isItemVisible">isItemVisible</a>().</p>
<!-- @@@setItemVisible -->
<!-- $$$setWhatsThis[overload1]$$$setWhatsThisintconstQString& -->
<h3 class="fn"><a name="setWhatsThis"></a><span class="type">void</span> QMenu::<span class="name">setWhatsThis</span> ( <span class="type">int</span> <i>id</i>, const <span class="type"><a href="qstring.html">QString</a></span> & <i>w</i> )</h3>
<p>Use setWhatsThis() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<p><b>See also </b><a href="qmenu-qt3.html#whatsThis">whatsThis</a>().</p>
<!-- @@@setWhatsThis -->
<!-- $$$text[overload1]$$$textint -->
<h3 class="fn"><a name="text"></a><span class="type"><a href="qstring.html">QString</a></span> QMenu::<span class="name">text</span> ( <span class="type">int</span> <i>id</i> ) const</h3>
<p>Use text() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<!-- @@@text -->
<!-- $$$whatsThis[overload1]$$$whatsThisint -->
<h3 class="fn"><a name="whatsThis"></a><span class="type"><a href="qstring.html">QString</a></span> QMenu::<span class="name">whatsThis</span> ( <span class="type">int</span> <i>id</i> ) const</h3>
<p>Use whatsThis() on the relevant <a href="qaction.html">QAction</a> instead.</p>
<p><b>See also </b><a href="qmenu-qt3.html#setWhatsThis">setWhatsThis</a>().</p>
<!-- @@@whatsThis -->
<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>
|