src/eric7/Documentation/Source/eric7.EricWidgets.EricAutoResizeTextBrowser.html

Mon, 16 Sep 2024 13:20:17 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 16 Sep 2024 13:20:17 +0200
branch
eric7
changeset 10920
8a1d447323a2
permissions
-rw-r--r--

Added a specialized QTextBrowser subclass that adjusts its size to the contained text automatically (no scrollbars shown).

<!DOCTYPE html>
<html><head>
<title>eric7.EricWidgets.EricAutoResizeTextBrowser</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<a NAME="top" ID="top"></a>
<h1>eric7.EricWidgets.EricAutoResizeTextBrowser</h1>
<p>
Module implementing a QTextBrowser widget that resizes automatically.
</p>

<h3>Global Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Classes</h3>
<table>
<tr>
<td><a href="#EricAutoResizeTextBrowser">EricAutoResizeTextBrowser</a></td>
<td>Class implementing a QTextBrowser widget that adjusts its size automatically to the contained text.</td>
</tr>
</table>

<h3>Functions</h3>
<table>
<tr><td>None</td></tr>
</table>

<hr />
<hr />
<a NAME="EricAutoResizeTextBrowser" ID="EricAutoResizeTextBrowser"></a>
<h2>EricAutoResizeTextBrowser</h2>
<p>
    Class implementing a QTextBrowser widget that adjusts its size automatically to the
    contained text.
</p>

<h3>Derived from</h3>
QTextBrowser
<h3>Class Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Class Methods</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Methods</h3>
<table>
<tr>
<td><a href="#EricAutoResizeTextBrowser.__init__">EricAutoResizeTextBrowser</a></td>
<td>Constructor</td>
</tr>
<tr>
<td><a href="#EricAutoResizeTextBrowser.resizeEvent">resizeEvent</a></td>
<td>Protected method to handle resize events.</td>
</tr>
<tr>
<td><a href="#EricAutoResizeTextBrowser.updateGeometry">updateGeometry</a></td>
<td>Public method to update the geometry depending on the current text.</td>
</tr>
</table>

<h3>Static Methods</h3>
<table>
<tr><td>None</td></tr>
</table>


<a NAME="EricAutoResizeTextBrowser.__init__" ID="EricAutoResizeTextBrowser.__init__"></a>
<h4>EricAutoResizeTextBrowser (Constructor)</h4>
<b>EricAutoResizeTextBrowser</b>(<i>parent=None</i>)
<p>
        Constructor
</p>

<dl>

<dt><i>parent</i> (QWidget (optional))</dt>
<dd>
reference to the parent widget (defaults to None)
</dd>
</dl>
<a NAME="EricAutoResizeTextBrowser.resizeEvent" ID="EricAutoResizeTextBrowser.resizeEvent"></a>
<h4>EricAutoResizeTextBrowser.resizeEvent</h4>
<b>resizeEvent</b>(<i>evt</i>)
<p>
        Protected method to handle resize events.
</p>

<dl>

<dt><i>evt</i> (QResizeEvent)</dt>
<dd>
reference to the resize event
</dd>
</dl>
<a NAME="EricAutoResizeTextBrowser.updateGeometry" ID="EricAutoResizeTextBrowser.updateGeometry"></a>
<h4>EricAutoResizeTextBrowser.updateGeometry</h4>
<b>updateGeometry</b>(<i></i>)
<p>
        Public method to update the geometry depending on the current text.
</p>

<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial