129 <dd> |
129 <dd> |
130 parent widget (QWidget) |
130 parent widget (QWidget) |
131 </dd> |
131 </dd> |
132 </dl><a NAME="E5GraphicsView.__getDiagram" ID="E5GraphicsView.__getDiagram"></a> |
132 </dl><a NAME="E5GraphicsView.__getDiagram" ID="E5GraphicsView.__getDiagram"></a> |
133 <h4>E5GraphicsView.__getDiagram</h4> |
133 <h4>E5GraphicsView.__getDiagram</h4> |
134 <b>__getDiagram</b>(<i>rect, format="PNG", filename=None</i>) |
134 <b>__getDiagram</b>(<i>rect, imageFormat="PNG", filename=None</i>) |
135 <p> |
135 <p> |
136 Private method to retrieve the diagram from the scene fitting it |
136 Private method to retrieve the diagram from the scene fitting it |
137 in the minimum rectangle. |
137 in the minimum rectangle. |
138 </p><dl> |
138 </p><dl> |
139 <dt><i>rect</i></dt> |
139 <dt><i>rect</i></dt> |
140 <dd> |
140 <dd> |
141 minimum rectangle fitting the diagram (QRectF) |
141 minimum rectangle fitting the diagram (QRectF) |
142 </dd><dt><i>format</i></dt> |
142 </dd><dt><i>imageFormat</i></dt> |
143 <dd> |
143 <dd> |
144 format for the image file (string) |
144 format for the image file (string) |
145 </dd><dt><i>filename</i></dt> |
145 </dd><dt><i>filename</i></dt> |
146 <dd> |
146 <dd> |
147 name of the file for non pixmaps (string) |
147 name of the file for non pixmaps (string) |
251 <dd> |
251 <dd> |
252 flag indicating width is to be resized (boolean) |
252 flag indicating width is to be resized (boolean) |
253 </dd> |
253 </dd> |
254 </dl><a NAME="E5GraphicsView.saveImage" ID="E5GraphicsView.saveImage"></a> |
254 </dl><a NAME="E5GraphicsView.saveImage" ID="E5GraphicsView.saveImage"></a> |
255 <h4>E5GraphicsView.saveImage</h4> |
255 <h4>E5GraphicsView.saveImage</h4> |
256 <b>saveImage</b>(<i>filename, format="PNG"</i>) |
256 <b>saveImage</b>(<i>filename, imageFormat="PNG"</i>) |
257 <p> |
257 <p> |
258 Public method to save the scene to a file. |
258 Public method to save the scene to a file. |
259 </p><dl> |
259 </p><dl> |
260 <dt><i>filename</i></dt> |
260 <dt><i>filename</i></dt> |
261 <dd> |
261 <dd> |
262 name of the file to write the image to (string) |
262 name of the file to write the image to (string) |
263 </dd><dt><i>format</i></dt> |
263 </dd><dt><i>imageFormat</i></dt> |
264 <dd> |
264 <dd> |
265 format for the image file (string) |
265 format for the image file (string) |
266 </dd> |
266 </dd> |
267 </dl><dl> |
267 </dl><dl> |
268 <dt>Returns:</dt> |
268 <dt>Returns:</dt> |