[Kde-bindings] Qyoto issues - QPainter, QSvgGenerator

Ruth Ivimey-Cook ruth at ivimey.org
Fri Feb 1 18:30:15 UTC 2013


Dimitar Dobrev wrote:
>
>     Could you try decorating your Main method with the [STAThread] 
> attribute?
It already is... I almost included it, but here it is now:

namespace RWMapMaker
{
     static class Program
     {
         /// <summary>
         /// The main entry point for the application.
         /// </summary>
         [STAThread]
         static int Main(String[] args)
         {
             QApplication app = new QApplication(args);
             app.OrganizationName = "IvimeyCom";
             app.ApplicationName = "RWMapMaker";
             app.QuitOnLastWindowClosed = true;
             QMainWindow mainWin = new MainWindow();
             mainWin.Show();
             return QApplication.Exec();
         }
     }
}


-- 
Software Manager & Engineer
Tel: 01223 414180
Blog: http://www.ivimey.org/blog
LinkedIn: http://uk.linkedin.com/in/ruthivimeycook/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20130201/3ce449bd/attachment-0001.html>


More information about the Kde-bindings mailing list