Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > d5e62c01ae8d1e579463c6a871dd44bf > files > 3767

qtbase5-doc-5.12.6-2.mga7.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" />
<!-- qframe.cpp -->
  <title>QFrame Class | Qt Widgets 5.12.6</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.12</td><td ><a href="qtwidgets-index.html">Qt Widgets</a></td><td ><a href="qtwidgets-module.html">C++ Classes</a></td><td >QFrame</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtwidgets-index.html">Qt 5.12.6 Reference Documentation</a></td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#reimplemented-public-functions">Reimplemented Public Functions</a></li>
<li class="level1"><a href="#static-public-members">Static Public Members</a></li>
<li class="level1"><a href="#protected-functions">Protected Functions</a></li>
<li class="level1"><a href="#reimplemented-protected-functions">Reimplemented Protected Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QFrame Class</h1>
<!-- $$$QFrame-brief -->
<p>The <a href="qframe.html">QFrame</a> class is the base class of widgets that can have a frame. <a href="#details">More...</a></p>
<!-- @@@QFrame -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QFrame&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += widgets</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qwidget.html">QWidget</a></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherited By:</td><td class="memItemRight bottomAlign"> <p><a href="qabstractscrollarea.html">QAbstractScrollArea</a>, <a href="qlabel.html">QLabel</a>, <a href="qlcdnumber.html">QLCDNumber</a>, <a href="qsplitter.html">QSplitter</a>, <a href="qstackedwidget.html">QStackedWidget</a>, and <a href="qtoolbox.html">QToolBox</a></p>
</td></tr></table></div><ul>
<li><a href="qframe-members.html">List of all members, including inherited members</a></li>
<li><a href="qframe-obsolete.html">Obsolete members</a></li>
</ul>
<a name="public-types"></a>
<h2 id="public-types">Public Types</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qframe.html#Shadow-enum">Shadow</a></b> { Plain, Raised, Sunken }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qframe.html#Shape-enum">Shape</a></b> { NoFrame, Box, Panel, StyledPanel, ..., WinPanel }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qframe.html#StyleMask-enum">StyleMask</a></b> { Shadow_Mask, Shape_Mask }</td></tr>
</table></div>
<a name="properties"></a>
<h2 id="properties">Properties</h2>
<div class="table"><table class="propsummary">
<tr><td class="topAlign"><ul>
<li class="fn"><b><a href="qframe.html#frameRect-prop">frameRect</a></b> : QRect</li>
<li class="fn"><b><a href="qframe.html#frameShadow-prop">frameShadow</a></b> : Shadow</li>
<li class="fn"><b><a href="qframe.html#frameShape-prop">frameShape</a></b> : Shape</li>
</ul></td><td class="topAlign"><ul>
<li class="fn"><b><a href="qframe.html#frameWidth-prop">frameWidth</a></b> : const int</li>
<li class="fn"><b><a href="qframe.html#lineWidth-prop">lineWidth</a></b> : int</li>
<li class="fn"><b><a href="qframe.html#midLineWidth-prop">midLineWidth</a></b> : int</li>
</ul>
</td></tr>
</table></div>
<ul>
<li class="fn">59 properties inherited from <a href="qwidget.html#properties">QWidget</a></li>
<li class="fn">1 property inherited from <a href="../qtcore/qobject.html#properties">QObject</a></li>
</ul>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qframe.html#QFrame">QFrame</a></b>(QWidget *<i>parent</i> = nullptr, Qt::WindowFlags <i>f</i> = ...)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qframe.html#dtor.QFrame">~QFrame</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QRect </td><td class="memItemRight bottomAlign"><b><a href="qframe.html#frameRect-prop">frameRect</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QFrame::Shadow </td><td class="memItemRight bottomAlign"><b><a href="qframe.html#frameShadow-prop">frameShadow</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QFrame::Shape </td><td class="memItemRight bottomAlign"><b><a href="qframe.html#frameShape-prop">frameShape</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qframe.html#frameStyle">frameStyle</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qframe.html#frameWidth-prop">frameWidth</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qframe.html#lineWidth-prop">lineWidth</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qframe.html#midLineWidth-prop">midLineWidth</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qframe.html#frameRect-prop">setFrameRect</a></b>(<i>const QRect &amp;</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qframe.html#frameShadow-prop">setFrameShadow</a></b>(<i>QFrame::Shadow</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qframe.html#frameShape-prop">setFrameShape</a></b>(<i>QFrame::Shape</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qframe.html#setFrameStyle">setFrameStyle</a></b>(int <i>style</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qframe.html#lineWidth-prop">setLineWidth</a></b>(<i>int</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qframe.html#midLineWidth-prop">setMidLineWidth</a></b>(<i>int</i>)</td></tr>
</table></div>
<a name="reimplemented-public-functions"></a>
<h2 id="reimplemented-public-functions">Reimplemented Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual QSize </td><td class="memItemRight bottomAlign"><b><a href="qframe.html#sizeHint">sizeHint</a></b>() const override</td></tr>
</table></div>
<ul>
<li class="fn">214 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
<li class="fn">31 public functions inherited from <a href="../qtcore/qobject.html#public-functions">QObject</a></li>
<li class="fn">14 public functions inherited from <a href="../qtgui/qpaintdevice.html#public-functions">QPaintDevice</a></li>
</ul>
<a name="static-public-members"></a>
<h2 id="static-public-members">Static Public Members</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> const QMetaObject </td><td class="memItemRight bottomAlign"><b><a href="qframe.html#staticMetaObject-var">staticMetaObject</a></b></td></tr>
</table></div>
<ul>
<li class="fn">5 static public members inherited from <a href="qwidget.html#static-public-members">QWidget</a></li>
<li class="fn">9 static public members inherited from <a href="../qtcore/qobject.html#static-public-members">QObject</a></li>
</ul>
<a name="protected-functions"></a>
<h2 id="protected-functions">Protected Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qframe.html#initStyleOption">initStyleOption</a></b>(QStyleOptionFrame *<i>option</i>) const</td></tr>
</table></div>
<a name="reimplemented-protected-functions"></a>
<h2 id="reimplemented-protected-functions">Reimplemented Protected Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qframe.html#changeEvent">changeEvent</a></b>(QEvent *<i>ev</i>) override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qframe.html#event">event</a></b>(QEvent *<i>e</i>) override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qframe.html#paintEvent">paintEvent</a></b>(<i>QPaintEvent *</i>) override</td></tr>
</table></div>
<ul>
<li class="fn">35 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</a></li>
<li class="fn">9 protected functions inherited from <a href="../qtcore/qobject.html#protected-functions">QObject</a></li>
<li class="fn">1 protected function inherited from <a href="../qtgui/qpaintdevice.html#protected-functions">QPaintDevice</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">19 public slots inherited from <a href="qwidget.html#public-slots">QWidget</a></li>
<li class="fn">1 public slot inherited from <a href="../qtcore/qobject.html#public-slots">QObject</a></li>
<li class="fn">3 signals inherited from <a href="qwidget.html#signals">QWidget</a></li>
<li class="fn">2 signals inherited from <a href="../qtcore/qobject.html#signals">QObject</a></li>
<li class="fn">1 protected slot inherited from <a href="qwidget.html#protected-slots">QWidget</a></li>
</ul>
<a name="details"></a>
<!-- $$$QFrame-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qframe.html">QFrame</a> class is the base class of widgets that can have a frame.</p>
<p><a href="qmenu.html">QMenu</a> uses this to &quot;raise&quot; the menu above the surrounding screen. <a href="qprogressbar.html">QProgressBar</a> has a &quot;sunken&quot; look. <a href="qlabel.html">QLabel</a> has a flat look. The frames of widgets like these can be changed.</p>
<pre class="cpp">

  <span class="type"><a href="qlabel.html">QLabel</a></span> label(<span class="operator">.</span><span class="operator">.</span><span class="operator">.</span>);
  label<span class="operator">.</span>setFrameStyle(<span class="type"><a href="qframe.html#QFrame">QFrame</a></span><span class="operator">::</span>Panel <span class="operator">|</span> <span class="type"><a href="qframe.html#QFrame">QFrame</a></span><span class="operator">::</span>Raised);
  label<span class="operator">.</span>setLineWidth(<span class="number">2</span>);

  <span class="type"><a href="qprogressbar.html">QProgressBar</a></span> pbar(<span class="operator">.</span><span class="operator">.</span><span class="operator">.</span>);
  label<span class="operator">.</span>setFrameStyle(<span class="type"><a href="qframe.html#QFrame">QFrame</a></span><span class="operator">::</span>NoFrame);

</pre>
<p>The <a href="qframe.html">QFrame</a> class can also be used directly for creating simple placeholder frames without any contents.</p>
<p>The frame style is specified by a <a href="qframe.html#Shape-enum">frame shape</a> and a <a href="qframe.html#Shadow-enum">shadow style</a> that is used to visually separate the frame from surrounding widgets. These properties can be set together using the <a href="qframe.html#setFrameStyle">setFrameStyle</a>() function and read with <a href="qframe.html#frameStyle">frameStyle</a>().</p>
<p>The frame shapes are <a href="qframe.html#Shape-enum">NoFrame</a>, <a href="qframe.html#Shape-enum">Box</a>, <a href="qframe.html#Shape-enum">Panel</a>, <a href="qframe.html#Shape-enum">StyledPanel</a>, <a href="qframe.html#Shape-enum">HLine</a> and <a href="qframe.html#Shape-enum">VLine</a>; the shadow styles are <a href="qframe.html#Shadow-enum">Plain</a>, <a href="qframe.html#Shadow-enum">Raised</a> and <a href="qframe.html#Shadow-enum">Sunken</a>.</p>
<p>A frame widget has three attributes that describe the thickness of the border: <a href="qframe.html#lineWidth-prop">lineWidth</a>, <a href="qframe.html#midLineWidth-prop">midLineWidth</a>, and <a href="qframe.html#frameWidth-prop">frameWidth</a>.</p>
<ul>
<li>The line width is the width of the frame border. It can be modified to customize the frame's appearance.</li>
<li>The mid-line width specifies the width of an extra line in the middle of the frame, which uses a third color to obtain a special 3D effect. Notice that a mid-line is only drawn for <a href="qframe.html#Shape-enum">Box</a>, <a href="qframe.html#Shape-enum">HLine</a> and <a href="qframe.html#Shape-enum">VLine</a> frames that are raised or sunken.</li>
<li>The frame width is determined by the frame style, and the <a href="qframe.html#frameWidth-prop">frameWidth</a>() function is used to obtain the value defined for the style used.</li>
</ul>
<p>The margin between the frame and the contents of the frame can be customized with the <a href="qwidget.html#setContentsMargins">QWidget::setContentsMargins</a>() function.</p>
<a name="picture"></a><p>This table shows some of the combinations of styles and line widths:</p>
<p class="centerAlign"><img src="images/frames.png" alt="Table of frame styles" /></p></div>
<!-- @@@QFrame -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$Shadow$$$Plain$$$Raised$$$Sunken -->
<h3 class="fn" id="Shadow-enum"><a name="Shadow-enum"></a>enum QFrame::<span class="name">Shadow</span></h3>
<p>This enum type defines the types of shadow that are used to give a 3D effect to frames.</p>
<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>QFrame::Plain</code></td><td class="topAlign tblval"><code>0x0010</code></td><td class="topAlign">the frame and contents appear level with the surroundings; draws using the palette <a href="../qtgui/qpalette.html#ColorRole-enum">QPalette::WindowText</a> color (without any 3D effect)</td></tr>
<tr><td class="topAlign"><code>QFrame::Raised</code></td><td class="topAlign tblval"><code>0x0020</code></td><td class="topAlign">the frame and contents appear raised; draws a 3D raised line using the light and dark colors of the current color group</td></tr>
<tr><td class="topAlign"><code>QFrame::Sunken</code></td><td class="topAlign tblval"><code>0x0030</code></td><td class="topAlign">the frame and contents appear sunken; draws a 3D sunken line using the light and dark colors of the current color group</td></tr>
</table></div>
<p>Shadow interacts with <a href="qframe.html#Shape-enum">QFrame::Shape</a>, the <a href="qframe.html#lineWidth-prop">lineWidth</a>() and the <a href="qframe.html#midLineWidth-prop">midLineWidth</a>(). See the picture of the frames in the main class documentation.</p>
<p><b>See also </b><a href="qframe.html#Shape-enum">QFrame::Shape</a>, <a href="qframe.html#lineWidth-prop">lineWidth</a>(), and <a href="qframe.html#midLineWidth-prop">midLineWidth</a>().</p>
<!-- @@@Shadow -->
<!-- $$$Shape$$$NoFrame$$$Box$$$Panel$$$WinPanel$$$HLine$$$VLine$$$StyledPanel -->
<h3 class="fn" id="Shape-enum"><a name="Shape-enum"></a>enum QFrame::<span class="name">Shape</span></h3>
<p>This enum type defines the shapes of frame available.</p>
<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>QFrame::NoFrame</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign"><a href="qframe.html">QFrame</a> draws nothing</td></tr>
<tr><td class="topAlign"><code>QFrame::Box</code></td><td class="topAlign tblval"><code>0x0001</code></td><td class="topAlign"><a href="qframe.html">QFrame</a> draws a box around its contents</td></tr>
<tr><td class="topAlign"><code>QFrame::Panel</code></td><td class="topAlign tblval"><code>0x0002</code></td><td class="topAlign"><a href="qframe.html">QFrame</a> draws a panel to make the contents appear raised or sunken</td></tr>
<tr><td class="topAlign"><code>QFrame::StyledPanel</code></td><td class="topAlign tblval"><code>0x0006</code></td><td class="topAlign">draws a rectangular panel with a look that depends on the current GUI style. It can be raised or sunken.</td></tr>
<tr><td class="topAlign"><code>QFrame::HLine</code></td><td class="topAlign tblval"><code>0x0004</code></td><td class="topAlign"><a href="qframe.html">QFrame</a> draws a horizontal line that frames nothing (useful as separator)</td></tr>
<tr><td class="topAlign"><code>QFrame::VLine</code></td><td class="topAlign tblval"><code>0x0005</code></td><td class="topAlign"><a href="qframe.html">QFrame</a> draws a vertical line that frames nothing (useful as separator)</td></tr>
<tr><td class="topAlign"><code>QFrame::WinPanel</code></td><td class="topAlign tblval"><code>0x0003</code></td><td class="topAlign">draws a rectangular panel that can be raised or sunken like those in Windows 2000. Specifying this shape sets the line width to 2 pixels. WinPanel is provided for compatibility. For GUI style independence we recommend using StyledPanel instead.</td></tr>
</table></div>
<p>When it does not call <a href="qstyle.html">QStyle</a>, Shape interacts with <a href="qframe.html#Shadow-enum">QFrame::Shadow</a>, the <a href="qframe.html#lineWidth-prop">lineWidth</a>() and the <a href="qframe.html#midLineWidth-prop">midLineWidth</a>() to create the total result. See the picture of the frames in the main class documentation.</p>
<p><b>See also </b><a href="qframe.html#Shadow-enum">QFrame::Shadow</a>, <a href="qwidget.html#style">QFrame::style</a>(), and <a href="qstyle.html#drawPrimitive">QStyle::drawPrimitive</a>().</p>
<!-- @@@Shape -->
<!-- $$$StyleMask$$$Shadow_Mask$$$Shape_Mask -->
<h3 class="fn" id="StyleMask-enum"><a name="StyleMask-enum"></a>enum QFrame::<span class="name">StyleMask</span></h3>
<p>This enum defines two constants that can be used to extract the two components of <a href="qframe.html#frameStyle">frameStyle</a>():</p>
<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>QFrame::Shadow_Mask</code></td><td class="topAlign tblval"><code>0x00f0</code></td><td class="topAlign">The <a href="qframe.html#Shadow-enum">Shadow</a> part of <a href="qframe.html#frameStyle">frameStyle</a>()</td></tr>
<tr><td class="topAlign"><code>QFrame::Shape_Mask</code></td><td class="topAlign tblval"><code>0x000f</code></td><td class="topAlign">The <a href="qframe.html#Shape-enum">Shape</a> part of <a href="qframe.html#frameStyle">frameStyle</a>()</td></tr>
</table></div>
<p>Normally, you don't need to use these, since <a href="qframe.html#frameShadow-prop">frameShadow</a>() and <a href="qframe.html#frameShape-prop">frameShape</a>() already extract the <a href="qframe.html#Shadow-enum">Shadow</a> and the <a href="qframe.html#Shape-enum">Shape</a> parts of <a href="qframe.html#frameStyle">frameStyle</a>().</p>
<p><b>See also </b><a href="qframe.html#frameStyle">frameStyle</a>() and <a href="qframe.html#setFrameStyle">setFrameStyle</a>().</p>
<!-- @@@StyleMask -->
</div>
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$frameRect-prop$$$frameRect$$$setFrameRectconstQRect& -->
<h3 class="fn" id="frameRect-prop"><a name="frameRect-prop"></a><span class="name">frameRect</span> : <span class="type"><a href="../qtcore/qrect.html">QRect</a></span></h3>
<p>This property holds the frame's rectangle</p>
<p>The frame's rectangle is the rectangle the frame is drawn in. By default, this is the entire widget. Setting the rectangle does does <i>not</i> cause a widget update. The frame rectangle is automatically adjusted when the widget changes size.</p>
<p>If you set the rectangle to a null rectangle (for example, <a href="../qtcore/qrect.html">QRect</a>(0, 0, 0, 0)), then the resulting frame rectangle is equivalent to the <a href="qwidget.html#rect-prop">widget rectangle</a>.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QRect </td><td class="memItemRight bottomAlign"><span class="name"><b>frameRect</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setFrameRect</b></span>(<i>const QRect &amp;</i>)</td></tr>
</table></div>
<!-- @@@frameRect -->
<!-- $$$frameShadow-prop$$$frameShadow$$$setFrameShadowQFrame::Shadow -->
<h3 class="fn" id="frameShadow-prop"><a name="frameShadow-prop"></a><span class="name">frameShadow</span> : <span class="type"><a href="qframe.html#Shadow-enum">Shadow</a></span></h3>
<p>This property holds the frame shadow value from the frame style</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QFrame::Shadow </td><td class="memItemRight bottomAlign"><span class="name"><b>frameShadow</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setFrameShadow</b></span>(<i>QFrame::Shadow</i>)</td></tr>
</table></div>
<p><b>See also </b><a href="qframe.html#frameStyle">frameStyle</a>() and <a href="qframe.html#frameShape-prop">frameShape</a>().</p>
<!-- @@@frameShadow -->
<!-- $$$frameShape-prop$$$frameShape$$$setFrameShapeQFrame::Shape -->
<h3 class="fn" id="frameShape-prop"><a name="frameShape-prop"></a><span class="name">frameShape</span> : <span class="type"><a href="qframe.html#Shape-enum">Shape</a></span></h3>
<p>This property holds the frame shape value from the frame style</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QFrame::Shape </td><td class="memItemRight bottomAlign"><span class="name"><b>frameShape</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setFrameShape</b></span>(<i>QFrame::Shape</i>)</td></tr>
</table></div>
<p><b>See also </b><a href="qframe.html#frameStyle">frameStyle</a>() and <a href="qframe.html#frameShadow-prop">frameShadow</a>().</p>
<!-- @@@frameShape -->
<!-- $$$frameWidth-prop$$$frameWidth -->
<h3 class="fn" id="frameWidth-prop"><a name="frameWidth-prop"></a><span class="name">frameWidth</span> : const <span class="type">int</span></h3>
<p>This property holds the width of the frame that is drawn.</p>
<p>Note that the frame width depends on the <a href="qframe.html#setFrameStyle">frame style</a>, not only the line width and the mid-line width. For example, the style specified by <a href="qframe.html#Shape-enum">NoFrame</a> always has a frame width of 0, whereas the style <a href="qframe.html#Shape-enum">Panel</a> has a frame width equivalent to the line width.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>frameWidth</b></span>() const</td></tr>
</table></div>
<p><b>See also </b><a href="qframe.html#lineWidth-prop">lineWidth</a>(), <a href="qframe.html#midLineWidth-prop">midLineWidth</a>(), and <a href="qframe.html#frameStyle">frameStyle</a>().</p>
<!-- @@@frameWidth -->
<!-- $$$lineWidth-prop$$$lineWidth$$$setLineWidthint -->
<h3 class="fn" id="lineWidth-prop"><a name="lineWidth-prop"></a><span class="name">lineWidth</span> : <span class="type">int</span></h3>
<p>This property holds the line width</p>
<p>Note that the <i>total</i> line width for frames used as separators (<a href="qframe.html#Shape-enum">HLine</a> and <a href="qframe.html#Shape-enum">VLine</a>) is specified by <a href="qframe.html#frameWidth-prop">frameWidth</a>.</p>
<p>The default value is 1.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>lineWidth</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLineWidth</b></span>(<i>int</i>)</td></tr>
</table></div>
<p><b>See also </b><a href="qframe.html#midLineWidth-prop">midLineWidth</a> and <a href="qframe.html#frameWidth-prop">frameWidth</a>.</p>
<!-- @@@lineWidth -->
<!-- $$$midLineWidth-prop$$$midLineWidth$$$setMidLineWidthint -->
<h3 class="fn" id="midLineWidth-prop"><a name="midLineWidth-prop"></a><span class="name">midLineWidth</span> : <span class="type">int</span></h3>
<p>This property holds the width of the mid-line</p>
<p>The default value is 0.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>midLineWidth</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMidLineWidth</b></span>(<i>int</i>)</td></tr>
</table></div>
<p><b>See also </b><a href="qframe.html#lineWidth-prop">lineWidth</a> and <a href="qframe.html#frameWidth-prop">frameWidth</a>.</p>
<!-- @@@midLineWidth -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QFrame[overload1]$$$QFrameQWidget*Qt::WindowFlags -->
<h3 class="fn" id="QFrame"><a name="QFrame"></a>QFrame::<span class="name">QFrame</span>(<span class="type"><a href="qwidget.html#QWidget">QWidget</a></span> *<i>parent</i> = nullptr, <span class="type"><a href="../qtcore/qt.html#WindowType-enum">Qt::WindowFlags</a></span> <i>f</i> = ...)</h3>
<p>Constructs a frame widget with frame style <a href="qframe.html#Shape-enum">NoFrame</a> and a 1-pixel frame width.</p>
<p>The <i>parent</i> and <i>f</i> arguments are passed to the <a href="qwidget.html">QWidget</a> constructor.</p>
<!-- @@@QFrame -->
<!-- $$$~QFrame[overload1]$$$~QFrame -->
<h3 class="fn" id="dtor.QFrame"><a name="dtor.QFrame"></a><code>[virtual] </code>QFrame::<span class="name">~QFrame</span>()</h3>
<p>Destroys the frame.</p>
<!-- @@@~QFrame -->
<!-- $$$changeEvent[overload1]$$$changeEventQEvent* -->
<h3 class="fn" id="changeEvent"><a name="changeEvent"></a><code>[override virtual protected] </code><span class="type">void</span> QFrame::<span class="name">changeEvent</span>(<span class="type"><a href="../qtcore/qevent.html">QEvent</a></span> *<i>ev</i>)</h3>
<p>Reimplemented from <a href="qwidget.html#changeEvent">QWidget::changeEvent</a>().</p>
<!-- @@@changeEvent -->
<!-- $$$event[overload1]$$$eventQEvent* -->
<h3 class="fn" id="event"><a name="event"></a><code>[override virtual protected] </code><span class="type">bool</span> QFrame::<span class="name">event</span>(<span class="type"><a href="../qtcore/qevent.html">QEvent</a></span> *<i>e</i>)</h3>
<p>Reimplemented from <a href="qwidget.html#event">QWidget::event</a>().</p>
<!-- @@@event -->
<!-- $$$frameStyle[overload1]$$$frameStyle -->
<h3 class="fn" id="frameStyle"><a name="frameStyle"></a><span class="type">int</span> QFrame::<span class="name">frameStyle</span>() const</h3>
<p>Returns the frame style.</p>
<p>The default value is <a href="qframe.html#Shadow-enum">QFrame::Plain</a>.</p>
<p><b>See also </b><a href="qframe.html#setFrameStyle">setFrameStyle</a>(), <a href="qframe.html#frameShape-prop">frameShape</a>(), and <a href="qframe.html#frameShadow-prop">frameShadow</a>().</p>
<!-- @@@frameStyle -->
<!-- $$$initStyleOption[overload1]$$$initStyleOptionQStyleOptionFrame* -->
<h3 class="fn" id="initStyleOption"><a name="initStyleOption"></a><code>[protected] </code><span class="type">void</span> QFrame::<span class="name">initStyleOption</span>(<span class="type"><a href="qstyleoptionframe.html">QStyleOptionFrame</a></span> *<i>option</i>) const</h3>
<p>Initializes <i>option</i> with the values from this <a href="qframe.html">QFrame</a>. This method is useful for subclasses when they need a <a href="qstyleoptionframe.html">QStyleOptionFrame</a> but don't want to fill in all the information themselves.</p>
<p>This function was introduced in  Qt 5.5.</p>
<p><b>See also </b><a href="qstyleoption.html#initFrom">QStyleOption::initFrom</a>().</p>
<!-- @@@initStyleOption -->
<!-- $$$paintEvent[overload1]$$$paintEventQPaintEvent* -->
<h3 class="fn" id="paintEvent"><a name="paintEvent"></a><code>[override virtual protected] </code><span class="type">void</span> QFrame::<span class="name">paintEvent</span>(<i>QPaintEvent *</i>)</h3>
<p>Reimplemented from <a href="qwidget.html#paintEvent">QWidget::paintEvent</a>().</p>
<!-- @@@paintEvent -->
<!-- $$$setFrameStyle[overload1]$$$setFrameStyleint -->
<h3 class="fn" id="setFrameStyle"><a name="setFrameStyle"></a><span class="type">void</span> QFrame::<span class="name">setFrameStyle</span>(<span class="type">int</span> <i>style</i>)</h3>
<p>Sets the frame style to <i>style</i>.</p>
<p>The <i>style</i> is the bitwise OR between a frame shape and a frame shadow style. See the picture of the frames in the main class documentation.</p>
<p>The frame shapes are given in <a href="qframe.html#Shape-enum">QFrame::Shape</a> and the shadow styles in <a href="qframe.html#Shadow-enum">QFrame::Shadow</a>.</p>
<p>If a mid-line width greater than 0 is specified, an additional line is drawn for <a href="qframe.html#Shadow-enum">Raised</a> or <a href="qframe.html#Shadow-enum">Sunken</a> <a href="qframe.html#Shape-enum">Box</a>, <a href="qframe.html#Shape-enum">HLine</a>, and <a href="qframe.html#Shape-enum">VLine</a> frames. The mid-color of the current color group is used for drawing middle lines.</p>
<p><b>See also </b><a href="qframe.html#frameStyle">frameStyle</a>().</p>
<!-- @@@setFrameStyle -->
<!-- $$$sizeHint[overload1]$$$sizeHint -->
<h3 class="fn" id="sizeHint"><a name="sizeHint"></a><code>[override virtual] </code><span class="type"><a href="../qtcore/qsize.html">QSize</a></span> QFrame::<span class="name">sizeHint</span>() const</h3>
<p>Reimplemented from <a href="qwidget.html#sizeHint-prop">QWidget::sizeHint</a>().</p>
<!-- @@@sizeHint -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2019 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>