<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Ruth Ivimey-Cook wrote:<br>
</div>
<blockquote cite="mid:510C09B7.1080605@ivimey.org" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix">Dimitar Dobrev wrote:<br>
</div>
<blockquote
cite="mid:1359742398.96399.YahooMailNeo@web122404.mail.ne1.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff; font-family:times
new roman, new york, times, serif;font-size:12pt"><span
class="tab"> <br>
</span>
<div><span class="tab"> Could you try decorating your Main
method with the [STAThread]</span> attribute?<br>
</div>
</div>
</blockquote>
It already is... I almost included it, but here it is now:<br>
<br>
<br>
</blockquote>
By commenting out the readSettings code I've got it to create a
mainwindow now... <br>
<br>
There is a strangeness to report. I am defining a new widget
MapWidget and the main init code copies View menu settings to the
widget on startup. If the map widget sees a change from it's
internal value it calls paintScene to update the GraphicsItemView it
uses. When running in PyQt this all worked fine, but in Qyoto I had
to predicate the paintScene code on the widget being Visible. I
think the problem is that some functions don't like being called too
soon, and if they are they zap memory somewhere. Too soon meaning
before the Main Exec has run...<br>
<br>
I can delve if needed.<br>
<br>
Ruth<br>
<br>
<br>
<pre class="moz-signature" cols="72">--
Software Manager & Engineer
Tel: 01223 414180
Blog: <a class="moz-txt-link-freetext" href="http://www.ivimey.org/blog">http://www.ivimey.org/blog</a>
LinkedIn: <a class="moz-txt-link-freetext" href="http://uk.linkedin.com/in/ruthivimeycook/">http://uk.linkedin.com/in/ruthivimeycook/</a> </pre>
</body>
</html>