{"action":"created","issue":{"url":"https://api.github.com/repos/therecipe/qt/issues/712","repository_url":"https://api.github.com/repos/therecipe/qt","labels_url":"https://api.github.com/repos/therecipe/qt/issues/712/labels{/name}","comments_url":"https://api.github.com/repos/therecipe/qt/issues/712/comments","events_url":"https://api.github.com/repos/therecipe/qt/issues/712/events","html_url":"https://github.com/therecipe/qt/issues/712","id":367438581,"node_id":"MDU6SXNzdWUzNjc0Mzg1ODE=","number":712,"title":"uint64 behaves strangely when converted to core.QVariant","user":{"login":"skaldesh","id":12274166,"node_id":"MDQ6VXNlcjEyMjc0MTY2","avatar_url":"https://avatars1.githubusercontent.com/u/12274166?v=4","gravatar_id":"","url":"https://api.github.com/users/skaldesh","html_url":"https://github.com/skaldesh","followers_url":"https://api.github.com/users/skaldesh/followers","following_url":"https://api.github.com/users/skaldesh/following{/other_user}","gists_url":"https://api.github.com/users/skaldesh/gists{/gist_id}","starred_url":"https://api.github.com/users/skaldesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skaldesh/subscriptions","organizations_url":"https://api.github.com/users/skaldesh/orgs","repos_url":"https://api.github.com/users/skaldesh/repos","events_url":"https://api.github.com/users/skaldesh/events{/privacy}","received_events_url":"https://api.github.com/users/skaldesh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-10-06T08:59:02Z","updated_at":"2018-10-06T21:57:26Z","closed_at":null,"author_association":"NONE","body":"Hey!  \r\nI wanted to convert an `uint64` to a `*core.QVariant` that gets passed to QML. I used the function `core.NewQVariant10(number)` to convert the number and then I wanted to display the value in a listview. However, the number came out slightly INCREASED (yes, I am serious).  \r\n\r\nMy number is `388519949297975297`. But the number that gets displayed, is `388519949297975300` (Notice the difference in the last three digits only)\r\n\r\nCODE:\r\n```\r\ntype TagEventOverviewModel struct {\r\n\tcore.QAbstractListModel\r\n\t_ func() `constructor:\"init\"`\r\n\ttags []*db.TagEvent\r\n}\r\n\r\nfunc (t *TagEventOverviewModel) init() {\r\n\tt.ConnectData(t.data)\r\n\tt.ConnectRowCount(t.rowCount)\r\n}\r\n\r\nfunc (t *TagEventOverviewModel) rowCount(*core.QModelIndex) int {\r\n\treturn len(t.tags)\r\n}\r\n\r\nfunc (t *TagEventOverviewModel) data(index *core.QModelIndex, role int) *core.QVariant {\r\n\tif role != int(core.Qt__DisplayRole) {\r\n\t\treturn core.NewQVariant()\r\n\t}\r\n\r\n\ttag := t.tags[index.Row()]\r\n\treturn core.NewQVariant25(map[string]*core.QVariant{\r\n\t\t\"number\":        core.NewQVariant10(tag.ID),\r\n\t})\r\n}\r\n```\r\n\r\nQML:\r\n```\r\nListView {\r\n        id: list\r\n        anchors {\r\n            top: filterBar.bottom\r\n            left: parent.left\r\n            right: parent.right\r\n            bottom: parent.bottom\r\n        }\r\n        clip: true\r\n        model: bridge.tagEventModel\r\n\r\n        delegate: Item {\r\n            width: list.width\r\n            height: 100\r\n\r\n            Text {\r\n                text: display.number\r\n                color: Material.foreground\r\n                font.pixelSize: 16\r\n            }\r\n        }\r\n```"},"comment":{"url":"https://api.github.com/repos/therecipe/qt/issues/comments/427609230","html_url":"https://github.com/therecipe/qt/issues/712#issuecomment-427609230","issue_url":"https://api.github.com/repos/therecipe/qt/issues/712","id":427609230,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzYwOTIzMA==","user":{"login":"skaldesh","id":12274166,"node_id":"MDQ6VXNlcjEyMjc0MTY2","avatar_url":"https://avatars1.githubusercontent.com/u/12274166?v=4","gravatar_id":"","url":"https://api.github.com/users/skaldesh","html_url":"https://github.com/skaldesh","followers_url":"https://api.github.com/users/skaldesh/followers","following_url":"https://api.github.com/users/skaldesh/following{/other_user}","gists_url":"https://api.github.com/users/skaldesh/gists{/gist_id}","starred_url":"https://api.github.com/users/skaldesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skaldesh/subscriptions","organizations_url":"https://api.github.com/users/skaldesh/orgs","repos_url":"https://api.github.com/users/skaldesh/repos","events_url":"https://api.github.com/users/skaldesh/events{/privacy}","received_events_url":"https://api.github.com/users/skaldesh/received_events","type":"User","site_admin":false},"created_at":"2018-10-06T21:57:26Z","updated_at":"2018-10-06T21:57:26Z","author_association":"NONE","body":"Alright, I will create one :)"}}
{"actor":{"display_login":"skaldesh"}}