On Thu, Apr 3, 2014 at 10:16 PM, David Skinner <
skinne...@gmail.com> wrote:
> My code is dead simple right now. InitQml is the first line in main. I do
> have some other rather complex init functions but they do not touch the QML
> stuff.
> Note that main is in a different package, if that might be the problem.
> Also I have been using go run for testing my program.
All of that should be okay.
> Final detail. I cannot seem to duplicate the error.! Maybe its cosmic rays?
If you do see it again, or find a way to reproduce, please drop me a
message. As some insight into the problem, the message from Qt is a
bit of a lie.. the "main" thread is whatever asks about the current
thread id first. That said, the qml package should in theory be safe
no matter what you do, because qml.Init "unlocks" the rest of the
functionality, and before unlocking it creates the QApplication in a
known thread.
So, that error message must come from an edge case I'd be happy to learn about.
> I am having a lot of fun with QML, it looks like a really great front end
> for go.
I'm glad to hear you're having fun with it. Do you intend to submit
something for the contest that is running until late in the month? If
you're working on a personal toy, that'd be welcome as an entry.
gustavo @
http://niemeyer.net