{"action":"created","issue":{"url":"https://api.github.com/repos/tux3/qTox/issues/1351","labels_url":"https://api.github.com/repos/tux3/qTox/issues/1351/labels{/name}","comments_url":"https://api.github.com/repos/tux3/qTox/issues/1351/comments","events_url":"https://api.github.com/repos/tux3/qTox/issues/1351/events","html_url":"https://github.com/tux3/qTox/pull/1351","id":60205170,"number":1351,"title":"Qrcode as HTML tooltip in Identity tab","user":{"login":"agilob","id":2544251,"avatar_url":"https://avatars.githubusercontent.com/u/2544251?v=3","gravatar_id":"","url":"https://api.github.com/users/agilob","html_url":"https://github.com/agilob","followers_url":"https://api.github.com/users/agilob/followers","following_url":"https://api.github.com/users/agilob/following{/other_user}","gists_url":"https://api.github.com/users/agilob/gists{/gist_id}","starred_url":"https://api.github.com/users/agilob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agilob/subscriptions","organizations_url":"https://api.github.com/users/agilob/orgs","repos_url":"https://api.github.com/users/agilob/repos","events_url":"https://api.github.com/users/agilob/events{/privacy}","received_events_url":"https://api.github.com/users/agilob/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-03-07T12:52:44Z","updated_at":"2015-03-14T20:15:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/tux3/qTox/pulls/1351","html_url":"https://github.com/tux3/qTox/pull/1351","diff_url":"https://github.com/tux3/qTox/pull/1351.diff","patch_url":"https://github.com/tux3/qTox/pull/1351.patch"},"body":"I had to use external lib `qrencode` for this, I added `-lqrencode` in qtox.pro, but I'm not sure if I did it right, please check it.\r\nI used a snippet from SO, modified it a bit, so it doesn't show a qwidget but converts qimage to base64 html, png format, that image is shown as tooltip :)\r\n\r\nThe tooltip is probably too big, 350x350 is hardcoded size.\r\n\r\ncloses https://github.com/tux3/qTox/issues/663\r\nMy toxid: 7119F8F3B55FCA07F78CC78003F9F9FCE70B2C0AEF3649F3A84C87EA56BE927F3A9119A7992E\r\nThe same is decoded by barcodescanner on Android.\r\n\r\n![qrcodetox](https://cloud.githubusercontent.com/assets/2544251/6541446/7787dfd0-c4c8-11e4-8860-1cd1c12f30c5.png)\r\n\r\n\r\nThanks @TheLastProject for [the idea](https://github.com/tux3/qTox/pull/1311) :)"},"comment":{"url":"https://api.github.com/repos/tux3/qTox/issues/comments/80700072","html_url":"https://github.com/tux3/qTox/pull/1351#issuecomment-80700072","issue_url":"https://api.github.com/repos/tux3/qTox/issues/1351","id":80700072,"user":{"login":"agilob","id":2544251,"avatar_url":"https://avatars.githubusercontent.com/u/2544251?v=3","gravatar_id":"","url":"https://api.github.com/users/agilob","html_url":"https://github.com/agilob","followers_url":"https://api.github.com/users/agilob/followers","following_url":"https://api.github.com/users/agilob/following{/other_user}","gists_url":"https://api.github.com/users/agilob/gists{/gist_id}","starred_url":"https://api.github.com/users/agilob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agilob/subscriptions","organizations_url":"https://api.github.com/users/agilob/orgs","repos_url":"https://api.github.com/users/agilob/repos","events_url":"https://api.github.com/users/agilob/events{/privacy}","received_events_url":"https://api.github.com/users/agilob/received_events","type":"User","site_admin":false},"created_at":"2015-03-14T20:15:49Z","updated_at":"2015-03-14T20:15:49Z","body":">permanently-displayed\r\n\r\nit's useless. how often do you want to scan your own QRcode? It's a waste of space."}}