{"action":"created","issue":{"url":"https://api.github.com/repos/therecipe/qt/issues/76","repository_url":"https://api.github.com/repos/therecipe/qt","labels_url":"https://api.github.com/repos/therecipe/qt/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/therecipe/qt/issues/76/comments","events_url":"https://api.github.com/repos/therecipe/qt/issues/76/events","html_url":"https://github.com/therecipe/qt/issues/76","id":184414183,"number":76,"title":"Can't turn on hDPI with qtdeploy","user":{"login":"bclermont","id":474302,"avatar_url":"https://avatars.githubusercontent.com/u/474302?v=3","gravatar_id":"","url":"https://api.github.com/users/bclermont","html_url":"https://github.com/bclermont","followers_url":"https://api.github.com/users/bclermont/followers","following_url":"https://api.github.com/users/bclermont/following{/other_user}","gists_url":"https://api.github.com/users/bclermont/gists{/gist_id}","starred_url":"https://api.github.com/users/bclermont/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bclermont/subscriptions","organizations_url":"https://api.github.com/users/bclermont/orgs","repos_url":"https://api.github.com/users/bclermont/repos","events_url":"https://api.github.com/users/bclermont/events{/privacy}","received_events_url":"https://api.github.com/users/bclermont/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-21T07:08:42Z","updated_at":"2016-10-21T22:25:39Z","closed_at":null,"body":"As `qtdeploy` don't log anything, I can't troubleshoot this issue myself (see issue #72).\r\n\r\nOn OSX with Retina display all applications built do not look good, as they use lower DPI rendering:\r\n\r\n<img width=\"475\" alt=\"image-1\" src=\"https://cloud.githubusercontent.com/assets/474302/19589430/c2c178e4-979e-11e6-9a00-478a234c6ad4.png\">\r\n\r\nI could fixed this by using this change:\r\n\r\n```\r\ndiff --git a/internal/examples/qml/application/application.go b/internal/examples/qml/application/application.go\r\nindex 152ac48..456a5f0 100755\r\n--- a/internal/examples/qml/application/application.go\r\n+++ b/internal/examples/qml/application/application.go\r\n@@ -10,7 +10,9 @@ import (\r\n\r\n func main() {\r\n\r\n-       gui.NewQGuiApplication(len(os.Args), os.Args)\r\n+       a := gui.NewQGuiApplication(len(os.Args), os.Args)\r\n+       a.SetAttribute(core.Qt__AA_UseHighDpiPixmaps, true)\r\n+       a.SetAttribute(core.Qt__AA_EnableHighDpiScaling, true)\r\n\r\n        var app = qml.NewQQmlApplicationEngine(nil)\r\n        app.Load(core.NewQUrl3(\"qrc:///qml/application.qml\", 0))\r\n```\r\n\r\nand then rebuild the and run:\r\n\r\n```\r\nsrc/github.com/therecipe/qt/internal/examples/qml/application go build -v\r\ngithub.com/therecipe/qt/internal/examples/qml/application\r\n./application\r\n```\r\n\r\nand then it look correctly:\r\n\r\n<img width=\"480\" alt=\"image-2\" src=\"https://cloud.githubusercontent.com/assets/474302/19589481/f405ea52-979e-11e6-9208-2aca68870b8e.png\">\r\n\r\nI even tried to run with `go build -v -a` (force rebuild of all .go source) and it successfully build & run.\r\n\r\nbut if I build that with `qtdeploy` I get the following error:\r\n\r\n```\r\n# github.com/therecipe/qt/internal/examples/qml/application\r\n./application.go:14: a.SetAttribute undefined (type *gui.QGuiApplication has no field or method SetAttribute)\r\n./application.go:15: a.SetAttribute undefined (type *gui.QGuiApplication has no field or method SetAttribute)\r\n\r\nerror:exit status 2\r\n```"},"comment":{"url":"https://api.github.com/repos/therecipe/qt/issues/comments/255479841","html_url":"https://github.com/therecipe/qt/issues/76#issuecomment-255479841","issue_url":"https://api.github.com/repos/therecipe/qt/issues/76","id":255479841,"user":{"login":"therecipe","id":9833226,"avatar_url":"https://avatars.githubusercontent.com/u/9833226?v=3","gravatar_id":"","url":"https://api.github.com/users/therecipe","html_url":"https://github.com/therecipe","followers_url":"https://api.github.com/users/therecipe/followers","following_url":"https://api.github.com/users/therecipe/following{/other_user}","gists_url":"https://api.github.com/users/therecipe/gists{/gist_id}","starred_url":"https://api.github.com/users/therecipe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/therecipe/subscriptions","organizations_url":"https://api.github.com/users/therecipe/orgs","repos_url":"https://api.github.com/users/therecipe/repos","events_url":"https://api.github.com/users/therecipe/events{/privacy}","received_events_url":"https://api.github.com/users/therecipe/received_events","type":"User","site_admin":false},"created_at":"2016-10-21T22:25:39Z","updated_at":"2016-10-21T22:25:39Z","body":"Should be fixed with https://github.com/therecipe/qt/commit/82145c26be44d89d6e07f4d316fae0812271bc65\r\n\r\nThe `SetAttribute` function is a static Qt function and wasn't recognized by \r\nqtdeploy."}}
{"actor":{"display_login":"therecipe"}}