<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
I found a way around it by trial and error....<br>
<br>
It turned out to be the operation len(<list>) , where the
<list> was a list of graphics items caused the problem when used
in mouseReleaseEvent . In this case it was possible to change the code
achieving the same result but not using the len() method. <br>
<br>
Not sure if this helps in finding the problem.<br>
<br>
Cheers, Heinz<br>
<br>
Heinz A. Preisig wrote:
<blockquote cite="mid:471DD7DC.1040504@chemeng.ntnu.no" type="cite">Hi,<br>
<br>
I have been expanding my code with new features after which I
experience an error<br>
<br>
NotImplementedError: QGraphicsItem.boundingRect() is abstract and must
be overridden<br>
<br>
when using the rubber band. The procedure has been working before, but
obviously I disturbed the devil.<br>
<br>
Any suggestions on what to change or do to get rid of the problem<br>
<br>
Cheers, Heinz<br>
<div class="moz-signature">-- <br>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>business</title>
<br>
<br>
<table style="text-align: left; width: 785px; height: 124px;"
border="1" cellpadding="2" cellspacing="1">
<tbody>
<tr>
<td style="width: 50%; vertical-align: top;"><span
style="font-weight: bold;">Heinz A Preisig</span><br>
Professor of Process Systems Engineering</td>
<td style="width: 50px; vertical-align: top;"><span style=""
lang="EN-US">Private: <br>
Øvre Bakklandet 62 B, 7013 Trondheim, Norway<br>
</span></td>
</tr>
<tr>
<td style="vertical-align: top;"><span
style="font-style: italic;">Department
of Chemical Engineering</span><br>
<div style="text-align: left;"><span
style="font-weight: bold; font-style: italic;"></span><span
style="font-weight: bold; font-style: italic;">Norwegian
University of Science and
Technology </span><span
style="font-size: 12pt; font-family: "Times New Roman";"></span><br>
</div>
<span style="font-size: 12pt; font-family: "Times New Roman";"><!--[if gte vml 1]><v:shapetype id="_x0000_t75"
coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe"
filled="f" stroked="f">
<v:stroke joinstyle="miter"/>
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0"/>
<v:f eqn="sum @0 1 0"/>
<v:f eqn="sum 0 0 @1"/>
<v:f eqn="prod @2 1 2"/>
<v:f eqn="prod @3 21600 pixelWidth"/>
<v:f eqn="prod @3 21600 pixelHeight"/>
<v:f eqn="sum @0 0 1"/>
<v:f eqn="prod @6 1 2"/>
<v:f eqn="prod @7 21600 pixelWidth"/>
<v:f eqn="sum @8 21600 0"/>
<v:f eqn="prod @7 21600 pixelHeight"/>
<v:f eqn="sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="_x0000_i1025" type="#_x0000_t75" style='width:45pt;
height:45pt'>
<v:imagedata src="file:///C:\DOCUME~1\preisig\LOCALS~1\Temp\msohtml1\01\clip_image0
01
.png"
o:title=""/>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]--></span><span
style="font-weight: bold; font-style: italic;"></span><span
style="font-style: italic;">N – 7491 Trondheim, Norway</span></td>
<td style="vertical-align: top;">Tel direct:<span style="">
</span> <span style="" lang="EN-US">+47 <span style=""> </span><span
style=""> </span>735
92807<span style=""><br>
</span></span><span style="" lang="EN-US">Tel mob:<span style="">
</span> +47 <span style=""> </span>9754
1334<br>
</span><span style="" lang="EN-US">e-mail:<span style="">
</span><a moz-do-not-send="true"
href="mailto:Heinz.Preisig@chemeng.ntnu.no">Heinz.Preisig@chemeng.ntnu.no</a><br>
</span><span style="" lang="EN-US">web:<span style="">
</span><a moz-do-not-send="true"
href="http://www.chemeng.ntnu.no/%7Epreisig">www.chemeng.ntnu.no\~preisig</a></span></td>
</tr>
</tbody>
</table>
<span style="font-weight: bold;"></span><br>
<span style="" lang="EN-US"></span>
</div>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
PyQt mailing list <a class="moz-txt-link-abbreviated" href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a>
<a class="moz-txt-link-freetext" href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<title>business</title>
<br>
<br>
<table style="text-align: left; width: 785px; height: 124px;" border="1"
cellpadding="2" cellspacing="1">
<tbody>
<tr>
<td style="width: 50%; vertical-align: top;"><span
style="font-weight: bold;">Heinz A Preisig</span><br>
Professor of Process Systems Engineering</td>
<td style="width: 50px; vertical-align: top;"><span style=""
lang="EN-US">Private: <br>
Øvre Bakklandet 62 B, 7013 Trondheim, Norway<br>
</span></td>
</tr>
<tr>
<td style="vertical-align: top;"><span style="font-style: italic;">Department
of Chemical Engineering</span><br>
<div style="text-align: left;"><span
style="font-weight: bold; font-style: italic;"></span><span
style="font-weight: bold; font-style: italic;">Norwegian
University of Science and
Technology </span><span
style="font-size: 12pt; font-family: "Times New Roman";"></span><br>
</div>
<span style="font-size: 12pt; font-family: "Times New Roman";"><!--[if gte vml 1]><v:shapetype id="_x0000_t75"
coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe"
filled="f" stroked="f">
<v:stroke joinstyle="miter"/>
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0"/>
<v:f eqn="sum @0 1 0"/>
<v:f eqn="sum 0 0 @1"/>
<v:f eqn="prod @2 1 2"/>
<v:f eqn="prod @3 21600 pixelWidth"/>
<v:f eqn="prod @3 21600 pixelHeight"/>
<v:f eqn="sum @0 0 1"/>
<v:f eqn="prod @6 1 2"/>
<v:f eqn="prod @7 21600 pixelWidth"/>
<v:f eqn="sum @8 21600 0"/>
<v:f eqn="prod @7 21600 pixelHeight"/>
<v:f eqn="sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="_x0000_i1025" type="#_x0000_t75" style='width:45pt;
height:45pt'>
<v:imagedata src="file:///C:\DOCUME~1\preisig\LOCALS~1\Temp\msohtml1\01\clip_image001
.png"
o:title=""/>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]--></span><span
style="font-weight: bold; font-style: italic;"></span><span
style="font-style: italic;">N – 7491 Trondheim, Norway</span></td>
<td style="vertical-align: top;">Tel direct:<span style="">
</span> <span style="" lang="EN-US">+47 <span style=""> </span><span
style=""> </span>735
92807<span style=""><br>
</span></span><span style="" lang="EN-US">Tel mob:<span style="">
</span> +47 <span style=""> </span>9754
1334<br>
</span><span style="" lang="EN-US">e-mail:<span style="">
</span><a href="mailto:Heinz.Preisig@chemeng.ntnu.no">Heinz.Preisig@chemeng.ntnu.no</a><br>
</span><span style="" lang="EN-US">web:<span style="">
</span><a href="http://www.chemeng.ntnu.no/%7Epreisig">www.chemeng.ntnu.no\~preisig</a></span></td>
</tr>
</tbody>
</table>
<span style="font-weight: bold;"></span><br>
<span style="" lang="EN-US"></span>
</div>
</body>
</html>