On Tue, 13 Sep 2011, Oliver Eichler wrote: >> ok, I could reproduce this after adding sleep(4) right before >> splash->show() in main.cpp. So the file open event is posted while there >> is no main window yet but only the splash screen. >> >> A simple workaround is attached. Maybe someone with better Qt knowledge >> has a better solution. > > Hm, scheduling a timer event to retry after 1 second. Probably the best > solution for that problem. I am just a bit amazed that the timer system > is already up and running at that point. Maybe this might be another > race condition in the future. But as I do not have a better idea I would > give it a try.
Since Qt obviously processes events during splash->show() I think it's quite safe to schedule a timer. > The patch is in SVN and I made a few fixes to make the code compliant to > the purely virtual (reads "not written") coding guidelines. > > BTW how does MacPorts add/replace to the OSX binaries on sf.net? I just > got the feeling that some work is done twice, now. Should I add some > notes to the RELEASE file? And what about a few lines on the wiki? > Suggestions? IMO MacPorts and the sf.net binaries target a different audience. MacPorts is more appealing to developers, since everything is installed from source. It's a bit like Gentoo. Unless you have an idea what it means to compile Qt from source and just want to *use* QLGT you're generally better off with the binaries from sf.net. I don't think this introduces significant redundancy, once you have a working Portfile[1] (no big thing) for MacPorts it's mostly updating the checksums and submitting an upgrade ticket for new releases. A few lines for the wiki are ok, but I wouldn't lose too many words on it: "If you're not afraid to compile QLandkarte GT yourself you can also use MacPorts to install it on OS X. Once you have the MacPorts base system installed you just have to type 'sudo port install qlandkartegt'. Note that this takes some hours because it will also compile any dependencies from source." Michael [1] http://trac.macports.org/browser/trunk/dports/gis/qlandkartegt/Portfile -- "*Note SIGINT* is not supported for any Win32 application including Windows NT and Windows 95. When a CTRL+C interrupt occurs, Win32 operating systems generate a new thread to specifically handle that interrupt. This can cause a single- thread application such as UNIX, to become multithreaded, resulting in unexpected behavior." -- MSDN Library Visual Studio 6.0; signal() ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerry® mobile platform with sessions, labs & more. See new tools and technologies. Register for BlackBerry® DevCon today! http://p.sf.net/sfu/rim-devcon-copy1 _______________________________________________ Qlandkartegt-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users
