Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-updates > by-pkgid > 768f7d9f703884aa2562bf0a651086df > files > 1538

qtbase5-doc-5.9.4-1.1.mga6.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" />
<!-- qbrush.cpp -->
  <title>QRadialGradient Class | Qt GUI 5.9</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.9</td><td ><a href="qtgui-index.html">Qt GUI</a></td><td ><a href="qtgui-module.html">C++ Classes</a></td><td >QRadialGradient</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.9.4 Reference Documentation</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-functions">Public 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">QRadialGradient Class</h1>
<!-- $$$QRadialGradient-brief -->
<p>The <a href="qradialgradient.html">QRadialGradient</a> class is used in combination with <a href="qbrush.html">QBrush</a> to specify a radial gradient brush. <a href="#details">More...</a></p>
<!-- @@@QRadialGradient -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QRadialGradient&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += gui</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qgradient.html">QGradient</a></td></tr></table></div><ul>
<li><a href="qradialgradient-members.html">List of all members, including inherited members</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="qradialgradient.html#QRadialGradient">QRadialGradient</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qradialgradient.html#QRadialGradient-1">QRadialGradient</a></b>(const QPointF &amp;<i>center</i>, qreal <i>radius</i>, const QPointF &amp;<i>focalPoint</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qradialgradient.html#QRadialGradient-2">QRadialGradient</a></b>(qreal <i>cx</i>, qreal <i>cy</i>, qreal <i>radius</i>, qreal <i>fx</i>, qreal <i>fy</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qradialgradient.html#QRadialGradient-3">QRadialGradient</a></b>(const QPointF &amp;<i>center</i>, qreal <i>radius</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qradialgradient.html#QRadialGradient-4">QRadialGradient</a></b>(qreal <i>cx</i>, qreal <i>cy</i>, qreal <i>radius</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qradialgradient.html#QRadialGradient-5">QRadialGradient</a></b>(const QPointF &amp;<i>center</i>, qreal <i>centerRadius</i>, const QPointF &amp;<i>focalPoint</i>, qreal <i>focalRadius</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qradialgradient.html#QRadialGradient-6">QRadialGradient</a></b>(qreal <i>cx</i>, qreal <i>cy</i>, qreal <i>centerRadius</i>, qreal <i>fx</i>, qreal <i>fy</i>, qreal <i>focalRadius</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPointF </td><td class="memItemRight bottomAlign"><b><a href="qradialgradient.html#center">center</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qradialgradient.html#centerRadius">centerRadius</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPointF </td><td class="memItemRight bottomAlign"><b><a href="qradialgradient.html#focalPoint">focalPoint</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qradialgradient.html#focalRadius">focalRadius</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qradialgradient.html#radius">radius</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qradialgradient.html#setCenter">setCenter</a></b>(const QPointF &amp;<i>center</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qradialgradient.html#setCenter-1">setCenter</a></b>(qreal <i>x</i>, qreal <i>y</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qradialgradient.html#setCenterRadius">setCenterRadius</a></b>(qreal <i>radius</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qradialgradient.html#setFocalPoint">setFocalPoint</a></b>(const QPointF &amp;<i>focalPoint</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qradialgradient.html#setFocalPoint-1">setFocalPoint</a></b>(qreal <i>x</i>, qreal <i>y</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qradialgradient.html#setFocalRadius">setFocalRadius</a></b>(qreal <i>radius</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qradialgradient.html#setRadius">setRadius</a></b>(qreal <i>radius</i>)</td></tr>
</table></div>
<ul>
<li class="fn">10 public functions inherited from <a href="qgradient.html#public-functions">QGradient</a></li>
</ul>
<a name="details"></a>
<!-- $$$QRadialGradient-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qradialgradient.html">QRadialGradient</a> class is used in combination with <a href="qbrush.html">QBrush</a> to specify a radial gradient brush.</p>
<p>Qt supports both simple and extended radial gradients.</p>
<p>Simple radial gradients interpolate colors between a focal point and end points on a circle surrounding it. Extended radial gradients interpolate colors between a focal circle and a center circle. Points outside the cone defined by the two circles will be transparent. For simple radial gradients the focal point is adjusted to lie inside the center circle, whereas the focal point can have any position in an extended radial gradient.</p>
<p>Outside the end points the gradient is either padded, reflected or repeated depending on the currently set <a href="qgradient.html#Spread-enum">spread</a> method:</p>
<div class="table"><table class="generic">
 <tr valign="top" class="odd"><td ><img src="images/qradialgradient-pad.png" alt="" /></td><td ><img src="images/qradialgradient-reflect.png" alt="" /></td><td ><img src="images/qradialgradient-repeat.png" alt="" /></td></tr>
<tr valign="top" class="even"><td ><a href="qgradient.html#Spread-enum">PadSpread</a> (default)</td><td ><a href="qgradient.html#Spread-enum">ReflectSpread</a></td><td ><a href="qgradient.html#Spread-enum">RepeatSpread</a></td></tr>
</table></div>
<p>The colors in a gradient is defined using stop points of the <a href="qgradient.html#QGradientStop-typedef">QGradientStop</a> type, i.e&#x2e; a position and a color. Use the <a href="qgradient.html#setColorAt">QGradient::setColorAt</a>() or the <a href="qgradient.html#setStops">QGradient::setStops</a>() function to define the stop points. It is the gradient's complete set of stop points that describes how the gradient area should be filled. If no stop points have been specified, a gradient of black at 0 to white at 1 is used.</p>
<p>In addition to the functions inherited from <a href="qgradient.html">QGradient</a>, the <a href="qradialgradient.html">QRadialGradient</a> class provides the <a href="qradialgradient.html#center">center</a>(), <a href="qradialgradient.html#focalPoint">focalPoint</a>() and <a href="qradialgradient.html#radius">radius</a>() functions returning the gradient's center, focal point and radius respectively.</p>
</div>
<p><b>See also </b><a href="qlineargradient.html">QLinearGradient</a>, <a href="qconicalgradient.html">QConicalGradient</a>, and <a href="../qtwidgets/qtwidgets-painting-gradients-example.html">The Gradients Example</a>.</p>
<!-- @@@QRadialGradient -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QRadialGradient[overload1]$$$QRadialGradient -->
<h3 class="fn" id="QRadialGradient"><a name="QRadialGradient"></a>QRadialGradient::<span class="name">QRadialGradient</span>()</h3>
<p>Constructs a simple radial gradient with the center and focal point at (0, 0) with a radius of 1.</p>
<!-- @@@QRadialGradient -->
<!-- $$$QRadialGradient$$$QRadialGradientconstQPointF&qrealconstQPointF& -->
<h3 class="fn" id="QRadialGradient-1"><a name="QRadialGradient-1"></a>QRadialGradient::<span class="name">QRadialGradient</span>(const <span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span> &amp;<i>center</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>radius</i>, const <span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span> &amp;<i>focalPoint</i>)</h3>
<p>Constructs a simple radial gradient with the given <i>center</i>, <i>radius</i> and <i>focalPoint</i>.</p>
<p><b>Note: </b>If the given focal point is outside the circle defined by the <i>center</i> point and <i>radius</i>, it will be re-adjusted to lie at a point on the circle where it intersects with the line from <i>center</i> to <i>focalPoint</i>.</p><p><b>See also </b><a href="qgradient.html#setColorAt">QGradient::setColorAt</a>() and <a href="qgradient.html#setStops">QGradient::setStops</a>().</p>
<!-- @@@QRadialGradient -->
<!-- $$$QRadialGradient$$$QRadialGradientqrealqrealqrealqrealqreal -->
<h3 class="fn" id="QRadialGradient-2"><a name="QRadialGradient-2"></a>QRadialGradient::<span class="name">QRadialGradient</span>(<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>cx</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>cy</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>radius</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>fx</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>fy</i>)</h3>
<p>Constructs a simple radial gradient with the given center (<i>cx</i>, <i>cy</i>), <i>radius</i> and focal point (<i>fx</i>, <i>fy</i>).</p>
<p><b>Note: </b>If the given focal point is outside the circle defined by the center (<i>cx</i>, <i>cy</i>) and the <i>radius</i> it will be re-adjusted to the intersection between the line from the center to the focal point and the circle.</p><p><b>See also </b><a href="qgradient.html#setColorAt">QGradient::setColorAt</a>() and <a href="qgradient.html#setStops">QGradient::setStops</a>().</p>
<!-- @@@QRadialGradient -->
<!-- $$$QRadialGradient$$$QRadialGradientconstQPointF&qreal -->
<h3 class="fn" id="QRadialGradient-3"><a name="QRadialGradient-3"></a>QRadialGradient::<span class="name">QRadialGradient</span>(const <span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span> &amp;<i>center</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>radius</i>)</h3>
<p>Constructs a simple radial gradient with the given <i>center</i>, <i>radius</i> and the focal point in the circle center.</p>
<p><b>See also </b><a href="qgradient.html#setColorAt">QGradient::setColorAt</a>() and <a href="qgradient.html#setStops">QGradient::setStops</a>().</p>
<!-- @@@QRadialGradient -->
<!-- $$$QRadialGradient$$$QRadialGradientqrealqrealqreal -->
<h3 class="fn" id="QRadialGradient-4"><a name="QRadialGradient-4"></a>QRadialGradient::<span class="name">QRadialGradient</span>(<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>cx</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>cy</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>radius</i>)</h3>
<p>Constructs a simple radial gradient with the center at (<i>cx</i>, <i>cy</i>) and the specified <i>radius</i>. The focal point lies at the center of the circle.</p>
<p><b>See also </b><a href="qgradient.html#setColorAt">QGradient::setColorAt</a>() and <a href="qgradient.html#setStops">QGradient::setStops</a>().</p>
<!-- @@@QRadialGradient -->
<!-- $$$QRadialGradient$$$QRadialGradientconstQPointF&qrealconstQPointF&qreal -->
<h3 class="fn" id="QRadialGradient-5"><a name="QRadialGradient-5"></a>QRadialGradient::<span class="name">QRadialGradient</span>(const <span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span> &amp;<i>center</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>centerRadius</i>, const <span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span> &amp;<i>focalPoint</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>focalRadius</i>)</h3>
<p>Constructs an extended radial gradient with the given <i>center</i>, <i>centerRadius</i>, <i>focalPoint</i>, and <i>focalRadius</i>.</p>
<p>This function was introduced in  Qt 4.8.</p>
<!-- @@@QRadialGradient -->
<!-- $$$QRadialGradient$$$QRadialGradientqrealqrealqrealqrealqrealqreal -->
<h3 class="fn" id="QRadialGradient-6"><a name="QRadialGradient-6"></a>QRadialGradient::<span class="name">QRadialGradient</span>(<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>cx</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>cy</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>centerRadius</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>fx</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>fy</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>focalRadius</i>)</h3>
<p>Constructs an extended radial gradient with the given center (<i>cx</i>, <i>cy</i>), center radius, <i>centerRadius</i>, focal point, (<i>fx</i>, <i>fy</i>), and focal radius <i>focalRadius</i>.</p>
<p>This function was introduced in  Qt 4.8.</p>
<!-- @@@QRadialGradient -->
<!-- $$$center[overload1]$$$center -->
<h3 class="fn" id="center"><a name="center"></a><span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span> QRadialGradient::<span class="name">center</span>() const</h3>
<p>Returns the center of this radial gradient in logical coordinates.</p>
<p><b>See also </b><a href="qradialgradient.html#setCenter">setCenter</a>() and <a href="qgradient.html#stops">QGradient::stops</a>().</p>
<!-- @@@center -->
<!-- $$$centerRadius[overload1]$$$centerRadius -->
<h3 class="fn" id="centerRadius"><a name="centerRadius"></a><span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> QRadialGradient::<span class="name">centerRadius</span>() const</h3>
<p>Returns the center radius of this radial gradient in logical coordinates.</p>
<p>This function was introduced in  Qt 4.8.</p>
<p><b>See also </b><a href="qradialgradient.html#setCenterRadius">setCenterRadius</a>() and <a href="qgradient.html#stops">QGradient::stops</a>().</p>
<!-- @@@centerRadius -->
<!-- $$$focalPoint[overload1]$$$focalPoint -->
<h3 class="fn" id="focalPoint"><a name="focalPoint"></a><span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span> QRadialGradient::<span class="name">focalPoint</span>() const</h3>
<p>Returns the focal point of this radial gradient in logical coordinates.</p>
<p><b>See also </b><a href="qradialgradient.html#setFocalPoint">setFocalPoint</a>() and <a href="qgradient.html#stops">QGradient::stops</a>().</p>
<!-- @@@focalPoint -->
<!-- $$$focalRadius[overload1]$$$focalRadius -->
<h3 class="fn" id="focalRadius"><a name="focalRadius"></a><span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> QRadialGradient::<span class="name">focalRadius</span>() const</h3>
<p>Returns the focal radius of this radial gradient in logical coordinates.</p>
<p>This function was introduced in  Qt 4.8.</p>
<p><b>See also </b><a href="qradialgradient.html#setFocalRadius">setFocalRadius</a>() and <a href="qgradient.html#stops">QGradient::stops</a>().</p>
<!-- @@@focalRadius -->
<!-- $$$radius[overload1]$$$radius -->
<h3 class="fn" id="radius"><a name="radius"></a><span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> QRadialGradient::<span class="name">radius</span>() const</h3>
<p>Returns the radius of this radial gradient in logical coordinates.</p>
<p>Equivalent to <a href="qradialgradient.html#centerRadius">centerRadius</a>()</p>
<p><b>See also </b><a href="qradialgradient.html#setRadius">setRadius</a>() and <a href="qgradient.html#stops">QGradient::stops</a>().</p>
<!-- @@@radius -->
<!-- $$$setCenter[overload1]$$$setCenterconstQPointF& -->
<h3 class="fn" id="setCenter"><a name="setCenter"></a><span class="type">void</span> QRadialGradient::<span class="name">setCenter</span>(const <span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span> &amp;<i>center</i>)</h3>
<p>Sets the center of this radial gradient in logical coordinates to <i>center</i>.</p>
<p>This function was introduced in  Qt 4.2.</p>
<p><b>See also </b><a href="qradialgradient.html#center">center</a>().</p>
<!-- @@@setCenter -->
<!-- $$$setCenter$$$setCenterqrealqreal -->
<h3 class="fn" id="setCenter-1"><a name="setCenter-1"></a><span class="type">void</span> QRadialGradient::<span class="name">setCenter</span>(<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>x</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>y</i>)</h3>
<p>This is an overloaded function.</p>
<p>Sets the center of this radial gradient in logical coordinates to (<i>x</i>, <i>y</i>).</p>
<p>This function was introduced in  Qt 4.2.</p>
<p><b>See also </b><a href="qradialgradient.html#center">center</a>().</p>
<!-- @@@setCenter -->
<!-- $$$setCenterRadius[overload1]$$$setCenterRadiusqreal -->
<h3 class="fn" id="setCenterRadius"><a name="setCenterRadius"></a><span class="type">void</span> QRadialGradient::<span class="name">setCenterRadius</span>(<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>radius</i>)</h3>
<p>Sets the center radius of this radial gradient in logical coordinates to <i>radius</i></p>
<p>This function was introduced in  Qt 4.8.</p>
<p><b>See also </b><a href="qradialgradient.html#centerRadius">centerRadius</a>().</p>
<!-- @@@setCenterRadius -->
<!-- $$$setFocalPoint[overload1]$$$setFocalPointconstQPointF& -->
<h3 class="fn" id="setFocalPoint"><a name="setFocalPoint"></a><span class="type">void</span> QRadialGradient::<span class="name">setFocalPoint</span>(const <span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span> &amp;<i>focalPoint</i>)</h3>
<p>Sets the focal point of this radial gradient in logical coordinates to <i>focalPoint</i>.</p>
<p>This function was introduced in  Qt 4.2.</p>
<p><b>See also </b><a href="qradialgradient.html#focalPoint">focalPoint</a>().</p>
<!-- @@@setFocalPoint -->
<!-- $$$setFocalPoint$$$setFocalPointqrealqreal -->
<h3 class="fn" id="setFocalPoint-1"><a name="setFocalPoint-1"></a><span class="type">void</span> QRadialGradient::<span class="name">setFocalPoint</span>(<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>x</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>y</i>)</h3>
<p>This is an overloaded function.</p>
<p>Sets the focal point of this radial gradient in logical coordinates to (<i>x</i>, <i>y</i>).</p>
<p>This function was introduced in  Qt 4.2.</p>
<p><b>See also </b><a href="qradialgradient.html#focalPoint">focalPoint</a>().</p>
<!-- @@@setFocalPoint -->
<!-- $$$setFocalRadius[overload1]$$$setFocalRadiusqreal -->
<h3 class="fn" id="setFocalRadius"><a name="setFocalRadius"></a><span class="type">void</span> QRadialGradient::<span class="name">setFocalRadius</span>(<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>radius</i>)</h3>
<p>Sets the focal radius of this radial gradient in logical coordinates to <i>radius</i></p>
<p>This function was introduced in  Qt 4.8.</p>
<p><b>See also </b><a href="qradialgradient.html#focalRadius">focalRadius</a>().</p>
<!-- @@@setFocalRadius -->
<!-- $$$setRadius[overload1]$$$setRadiusqreal -->
<h3 class="fn" id="setRadius"><a name="setRadius"></a><span class="type">void</span> QRadialGradient::<span class="name">setRadius</span>(<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>radius</i>)</h3>
<p>Sets the radius of this radial gradient in logical coordinates to <i>radius</i></p>
<p>Equivalent to <a href="qradialgradient.html#setCenterRadius">setCenterRadius</a>()</p>
<p>This function was introduced in  Qt 4.2.</p>
<p><b>See also </b><a href="qradialgradient.html#radius">radius</a>().</p>
<!-- @@@setRadius -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2017 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>