{"action":"created","issue":{"url":"https://api.github.com/repos/go-qml/qml/issues/137","labels_url":"https://api.github.com/repos/go-qml/qml/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/go-qml/qml/issues/137/comments","events_url":"https://api.github.com/repos/go-qml/qml/issues/137/events","html_url":"https://github.com/go-qml/qml/issues/137","id":53322038,"number":137,"title":"Qt 5.4 panic: unsupported variant type: 1024 (QJSValue)","user":{"login":"obscuren","id":6264126,"avatar_url":"https://avatars.githubusercontent.com/u/6264126?v=3","gravatar_id":"","url":"https://api.github.com/users/obscuren","html_url":"https://github.com/obscuren","followers_url":"https://api.github.com/users/obscuren/followers","following_url":"https://api.github.com/users/obscuren/following{/other_user}","gists_url":"https://api.github.com/users/obscuren/gists{/gist_id}","starred_url":"https://api.github.com/users/obscuren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obscuren/subscriptions","organizations_url":"https://api.github.com/users/obscuren/orgs","repos_url":"https://api.github.com/users/obscuren/repos","events_url":"https://api.github.com/users/obscuren/events{/privacy}","received_events_url":"https://api.github.com/users/obscuren/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-04T02:03:08Z","updated_at":"2015-08-02T22:40:06Z","closed_at":null,"body":"Using QT 5.4.0 with qml v1 and exporting the following object:\r\n\r\n```go\r\ntype MyObject struct {}\r\nfunc (m *MyObject) Call(m map[string]interface{}) {\r\n    fmt.Println(m)\r\n}\r\ncontext.SetVar(\"m\", &MyObject{})\r\n// m.call( {} );\r\n```\r\n\r\nWill result in: `panic: unsupported variant type: 1024 (QJSValue)`\r\n\r\n**Possible solution**\r\nOn https://github.com/go-qml/qml/blob/v1/cpp/capi.cpp#L725 add a `case QMetaType::User:` "},"comment":{"url":"https://api.github.com/repos/go-qml/qml/issues/comments/127078428","html_url":"https://github.com/go-qml/qml/issues/137#issuecomment-127078428","issue_url":"https://api.github.com/repos/go-qml/qml/issues/137","id":127078428,"user":{"login":"janimo","id":50138,"avatar_url":"https://avatars.githubusercontent.com/u/50138?v=3","gravatar_id":"","url":"https://api.github.com/users/janimo","html_url":"https://github.com/janimo","followers_url":"https://api.github.com/users/janimo/followers","following_url":"https://api.github.com/users/janimo/following{/other_user}","gists_url":"https://api.github.com/users/janimo/gists{/gist_id}","starred_url":"https://api.github.com/users/janimo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janimo/subscriptions","organizations_url":"https://api.github.com/users/janimo/orgs","repos_url":"https://api.github.com/users/janimo/repos","events_url":"https://api.github.com/users/janimo/events{/privacy}","received_events_url":"https://api.github.com/users/janimo/received_events","type":"User","site_admin":false},"created_at":"2015-08-02T22:40:06Z","updated_at":"2015-08-02T22:40:06Z","body":"I see this error when trying to pass a Javascript array to a function on an object exported from Go."}}