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
|
<?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" />
<!-- qtoolbox.cpp -->
<title>Qt 4.8: Qt 3 Support Members for QToolBox</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>QToolBox</li>
</ul>
</div>
</div>
<div class="content mainContent">
<h1 class="title">Qt 3 Support Members for QToolBox</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="qtoolbox.html">QToolBox class reference</a></li></ul></p>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qtoolbox-qt3.html#QToolBox-2">QToolBox</a></b> ( QWidget * <i>parent</i>, const char * <i>name</i>, Qt::WindowFlags <i>f</i> = 0 )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> QWidget * </td><td class="memItemRight bottomAlign"><b><a href="qtoolbox-qt3.html#currentItem">currentItem</a></b> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> QWidget * </td><td class="memItemRight bottomAlign"><b><a href="qtoolbox-qt3.html#item">item</a></b> ( int <i>index</i> ) const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> QIcon </td><td class="memItemRight bottomAlign"><b><a href="qtoolbox-qt3.html#itemIconSet">itemIconSet</a></b> ( int <i>index</i> ) const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qtoolbox-qt3.html#itemLabel">itemLabel</a></b> ( int <i>index</i> ) const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtoolbox-qt3.html#margin">margin</a></b> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtoolbox-qt3.html#removeItem-2">removeItem</a></b> ( QWidget * <i>widget</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtoolbox-qt3.html#setCurrentItem">setCurrentItem</a></b> ( QWidget * <i>widget</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtoolbox-qt3.html#setItemIconSet">setItemIconSet</a></b> ( int <i>index</i>, const QIcon & <i>icon</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtoolbox-qt3.html#setItemLabel">setItemLabel</a></b> ( int <i>index</i>, const QString & <i>text</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtoolbox-qt3.html#setMargin">setMargin</a></b> ( int <i>margin</i> )</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>Member Function Documentation</h2>
<!-- $$$QToolBox$$$QToolBoxQWidget*constchar*Qt::WindowFlags -->
<h3 class="fn"><a name="QToolBox-2"></a>QToolBox::<span class="name">QToolBox</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i>, const <span class="type">char</span> * <i>name</i>, <span class="type"><a href="qt.html#WindowType-enum">Qt::WindowFlags</a></span> <i>f</i> = 0 )</h3>
<p>Constructs a toolbox called <i>name</i> with parent <i>parent</i> and flags <i>f</i>.</p>
<!-- @@@QToolBox -->
<!-- $$$currentItem[overload1]$$$currentItem -->
<h3 class="fn"><a name="currentItem"></a><span class="type"><a href="qwidget.html">QWidget</a></span> * QToolBox::<span class="name">currentItem</span> () const</h3>
<p>Use widget(<a href="qtoolbox.html#currentIndex-prop">currentIndex</a>()) instead.</p>
<p><b>See also </b><a href="qtoolbox-qt3.html#setCurrentItem">setCurrentItem</a>().</p>
<!-- @@@currentItem -->
<!-- $$$item[overload1]$$$itemint -->
<h3 class="fn"><a name="item"></a><span class="type"><a href="qwidget.html">QWidget</a></span> * QToolBox::<span class="name">item</span> ( <span class="type">int</span> <i>index</i> ) const</h3>
<p>Use <a href="qtoolbox.html#widget">widget</a>() instead.</p>
<!-- @@@item -->
<!-- $$$itemIconSet[overload1]$$$itemIconSetint -->
<h3 class="fn"><a name="itemIconSet"></a><span class="type"><a href="qicon.html">QIcon</a></span> QToolBox::<span class="name">itemIconSet</span> ( <span class="type">int</span> <i>index</i> ) const</h3>
<p>Use <a href="qtoolbox.html#itemIcon">itemIcon</a>() instead.</p>
<p><b>See also </b><a href="qtoolbox-qt3.html#setItemIconSet">setItemIconSet</a>().</p>
<!-- @@@itemIconSet -->
<!-- $$$itemLabel[overload1]$$$itemLabelint -->
<h3 class="fn"><a name="itemLabel"></a><span class="type"><a href="qstring.html">QString</a></span> QToolBox::<span class="name">itemLabel</span> ( <span class="type">int</span> <i>index</i> ) const</h3>
<p>Use <a href="qtoolbox.html#itemText">itemText</a>() instead.</p>
<p><b>See also </b><a href="qtoolbox-qt3.html#setItemLabel">setItemLabel</a>().</p>
<!-- @@@itemLabel -->
<!-- $$$margin[overload1]$$$margin -->
<h3 class="fn"><a name="margin"></a><span class="type">int</span> QToolBox::<span class="name">margin</span> () const</h3>
<p>Returns the width of the margin around the contents of the widget.</p>
<p>Use <a href="qwidget.html#getContentsMargins">QWidget::getContentsMargins</a>() instead.</p>
<p><b>See also </b><a href="qtoolbox-qt3.html#setMargin">setMargin</a>() and <a href="qwidget.html#getContentsMargins">QWidget::getContentsMargins</a>().</p>
<!-- @@@margin -->
<!-- $$$removeItem$$$removeItemQWidget* -->
<h3 class="fn"><a name="removeItem-2"></a><span class="type">int</span> QToolBox::<span class="name">removeItem</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>widget</i> )</h3>
<p>Use toolbox->removeItem(toolbox->indexOf(widget)) instead.</p>
<!-- @@@removeItem -->
<!-- $$$setCurrentItem[overload1]$$$setCurrentItemQWidget* -->
<h3 class="fn"><a name="setCurrentItem"></a><span class="type">void</span> QToolBox::<span class="name">setCurrentItem</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>widget</i> )</h3>
<p>Use setCurrentIndex(indexOf(widget)) instead.</p>
<p><b>See also </b><a href="qtoolbox-qt3.html#currentItem">currentItem</a>().</p>
<!-- @@@setCurrentItem -->
<!-- $$$setItemIconSet[overload1]$$$setItemIconSetintconstQIcon& -->
<h3 class="fn"><a name="setItemIconSet"></a><span class="type">void</span> QToolBox::<span class="name">setItemIconSet</span> ( <span class="type">int</span> <i>index</i>, const <span class="type"><a href="qicon.html">QIcon</a></span> & <i>icon</i> )</h3>
<p>Use <a href="qtoolbox.html#setItemIcon">setItemIcon</a>() instead.</p>
<p><b>See also </b><a href="qtoolbox-qt3.html#itemIconSet">itemIconSet</a>().</p>
<!-- @@@setItemIconSet -->
<!-- $$$setItemLabel[overload1]$$$setItemLabelintconstQString& -->
<h3 class="fn"><a name="setItemLabel"></a><span class="type">void</span> QToolBox::<span class="name">setItemLabel</span> ( <span class="type">int</span> <i>index</i>, const <span class="type"><a href="qstring.html">QString</a></span> & <i>text</i> )</h3>
<p>Use <a href="qtoolbox.html#setItemText">setItemText</a>() instead.</p>
<p><b>See also </b><a href="qtoolbox-qt3.html#itemLabel">itemLabel</a>().</p>
<!-- @@@setItemLabel -->
<!-- $$$setMargin[overload1]$$$setMarginint -->
<h3 class="fn"><a name="setMargin"></a><span class="type">void</span> QToolBox::<span class="name">setMargin</span> ( <span class="type">int</span> <i>margin</i> )</h3>
<p>Sets the width of the margin around the contents of the widget to <i>margin</i>.</p>
<p>Use <a href="qwidget.html#setContentsMargins">QWidget::setContentsMargins</a>() instead.</p>
<p><b>See also </b><a href="qtoolbox-qt3.html#margin">margin</a>() and <a href="qwidget.html#setContentsMargins">QWidget::setContentsMargins</a>().</p>
<!-- @@@setMargin -->
<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>
|