{"action":"created","issue":{"url":"https://api.github.com/repos/therecipe/qt/issues/573","repository_url":"https://api.github.com/repos/therecipe/qt","labels_url":"https://api.github.com/repos/therecipe/qt/issues/573/labels{/name}","comments_url":"https://api.github.com/repos/therecipe/qt/issues/573/comments","events_url":"https://api.github.com/repos/therecipe/qt/issues/573/events","html_url":"https://github.com/therecipe/qt/issues/573","id":305923244,"number":573,"title":"Set application icon","user":{"login":"woodyjon","id":30724004,"avatar_url":"https://avatars1.githubusercontent.com/u/30724004?v=4","gravatar_id":"","url":"https://api.github.com/users/woodyjon","html_url":"https://github.com/woodyjon","followers_url":"https://api.github.com/users/woodyjon/followers","following_url":"https://api.github.com/users/woodyjon/following{/other_user}","gists_url":"https://api.github.com/users/woodyjon/gists{/gist_id}","starred_url":"https://api.github.com/users/woodyjon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woodyjon/subscriptions","organizations_url":"https://api.github.com/users/woodyjon/orgs","repos_url":"https://api.github.com/users/woodyjon/repos","events_url":"https://api.github.com/users/woodyjon/events{/privacy}","received_events_url":"https://api.github.com/users/woodyjon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-03-16T13:14:38Z","updated_at":"2018-03-22T09:22:37Z","closed_at":null,"author_association":"NONE","body":"You say [here](https://github.com/therecipe/qt/wiki/Setting-the-Application-Icon) that application icon can be set by calling SetIcon() on the main window.\r\nBut in many examples, you use:\r\n```\r\ngui.NewQGuiApplication(len(os.Args), os.Args)\r\nengine := qml.NewQQmlApplicationEngine(nil)\r\nengine.Load(core.NewQUrl3(\"qrc:/qml/main.qml\", 0))\r\ngui.QGuiApplication_Exec()\r\n```\r\nwhich is what I use in my app. That way, I don't get how we access the main window to set the icon?\r\nCould you please help me on that point?\r\n\r\nThank you very much!"},"comment":{"url":"https://api.github.com/repos/therecipe/qt/issues/comments/375230430","html_url":"https://github.com/therecipe/qt/issues/573#issuecomment-375230430","issue_url":"https://api.github.com/repos/therecipe/qt/issues/573","id":375230430,"user":{"login":"woodyjon","id":30724004,"avatar_url":"https://avatars1.githubusercontent.com/u/30724004?v=4","gravatar_id":"","url":"https://api.github.com/users/woodyjon","html_url":"https://github.com/woodyjon","followers_url":"https://api.github.com/users/woodyjon/followers","following_url":"https://api.github.com/users/woodyjon/following{/other_user}","gists_url":"https://api.github.com/users/woodyjon/gists{/gist_id}","starred_url":"https://api.github.com/users/woodyjon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woodyjon/subscriptions","organizations_url":"https://api.github.com/users/woodyjon/orgs","repos_url":"https://api.github.com/users/woodyjon/repos","events_url":"https://api.github.com/users/woodyjon/events{/privacy}","received_events_url":"https://api.github.com/users/woodyjon/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T09:22:37Z","updated_at":"2018-03-22T09:22:37Z","author_association":"NONE","body":"Ok, great, I'll check that. Lot of stuff to learn in that app then. I am now very motivated to refactor my app and apply your architecture. Hope to find the time. Thank you very much!!\r\n\r\nCan I ask another question? When I am developing, I understood I should run `qtdeploy test desktop`, but then I don't have any log or list of bugs. For go, it is alright as I can log in a file (but I don't see the logs for crashes,...). For QML, same, I don't see the bugs. What I do is that if my app builds but does not launch, it means I made a mistake in my QML file, and by trial and errors, I find my mistake. It is not very efficient, I guess there must be a better way. How do you do?"}}
{"actor":{"display_login":"woodyjon"}}