|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.EricWidgets.EricAutoResizeTextBrowser</title> |
|
4 <meta charset="UTF-8"> |
|
5 <link rel="stylesheet" href="styles.css"> |
|
6 </head> |
|
7 <body> |
|
8 <a NAME="top" ID="top"></a> |
|
9 <h1>eric7.EricWidgets.EricAutoResizeTextBrowser</h1> |
|
10 <p> |
|
11 Module implementing a QTextBrowser widget that resizes automatically. |
|
12 </p> |
|
13 |
|
14 <h3>Global Attributes</h3> |
|
15 <table> |
|
16 <tr><td>None</td></tr> |
|
17 </table> |
|
18 |
|
19 <h3>Classes</h3> |
|
20 <table> |
|
21 <tr> |
|
22 <td><a href="#EricAutoResizeTextBrowser">EricAutoResizeTextBrowser</a></td> |
|
23 <td>Class implementing a QTextBrowser widget that adjusts its size automatically to the contained text.</td> |
|
24 </tr> |
|
25 </table> |
|
26 |
|
27 <h3>Functions</h3> |
|
28 <table> |
|
29 <tr><td>None</td></tr> |
|
30 </table> |
|
31 |
|
32 <hr /> |
|
33 <hr /> |
|
34 <a NAME="EricAutoResizeTextBrowser" ID="EricAutoResizeTextBrowser"></a> |
|
35 <h2>EricAutoResizeTextBrowser</h2> |
|
36 <p> |
|
37 Class implementing a QTextBrowser widget that adjusts its size automatically to the |
|
38 contained text. |
|
39 </p> |
|
40 |
|
41 <h3>Derived from</h3> |
|
42 QTextBrowser |
|
43 <h3>Class Attributes</h3> |
|
44 <table> |
|
45 <tr><td>None</td></tr> |
|
46 </table> |
|
47 |
|
48 <h3>Class Methods</h3> |
|
49 <table> |
|
50 <tr><td>None</td></tr> |
|
51 </table> |
|
52 |
|
53 <h3>Methods</h3> |
|
54 <table> |
|
55 <tr> |
|
56 <td><a href="#EricAutoResizeTextBrowser.__init__">EricAutoResizeTextBrowser</a></td> |
|
57 <td>Constructor</td> |
|
58 </tr> |
|
59 <tr> |
|
60 <td><a href="#EricAutoResizeTextBrowser.resizeEvent">resizeEvent</a></td> |
|
61 <td>Protected method to handle resize events.</td> |
|
62 </tr> |
|
63 <tr> |
|
64 <td><a href="#EricAutoResizeTextBrowser.updateGeometry">updateGeometry</a></td> |
|
65 <td>Public method to update the geometry depending on the current text.</td> |
|
66 </tr> |
|
67 </table> |
|
68 |
|
69 <h3>Static Methods</h3> |
|
70 <table> |
|
71 <tr><td>None</td></tr> |
|
72 </table> |
|
73 |
|
74 |
|
75 <a NAME="EricAutoResizeTextBrowser.__init__" ID="EricAutoResizeTextBrowser.__init__"></a> |
|
76 <h4>EricAutoResizeTextBrowser (Constructor)</h4> |
|
77 <b>EricAutoResizeTextBrowser</b>(<i>parent=None</i>) |
|
78 <p> |
|
79 Constructor |
|
80 </p> |
|
81 |
|
82 <dl> |
|
83 |
|
84 <dt><i>parent</i> (QWidget (optional))</dt> |
|
85 <dd> |
|
86 reference to the parent widget (defaults to None) |
|
87 </dd> |
|
88 </dl> |
|
89 <a NAME="EricAutoResizeTextBrowser.resizeEvent" ID="EricAutoResizeTextBrowser.resizeEvent"></a> |
|
90 <h4>EricAutoResizeTextBrowser.resizeEvent</h4> |
|
91 <b>resizeEvent</b>(<i>evt</i>) |
|
92 <p> |
|
93 Protected method to handle resize events. |
|
94 </p> |
|
95 |
|
96 <dl> |
|
97 |
|
98 <dt><i>evt</i> (QResizeEvent)</dt> |
|
99 <dd> |
|
100 reference to the resize event |
|
101 </dd> |
|
102 </dl> |
|
103 <a NAME="EricAutoResizeTextBrowser.updateGeometry" ID="EricAutoResizeTextBrowser.updateGeometry"></a> |
|
104 <h4>EricAutoResizeTextBrowser.updateGeometry</h4> |
|
105 <b>updateGeometry</b>(<i></i>) |
|
106 <p> |
|
107 Public method to update the geometry depending on the current text. |
|
108 </p> |
|
109 |
|
110 <div align="right"><a href="#top">Up</a></div> |
|
111 <hr /> |
|
112 </body></html> |