{"action":"opened","issue":{"url":"https://api.github.com/repos/IIC2233-2016-02/Syllabus/issues/511","repository_url":"https://api.github.com/repos/IIC2233-2016-02/Syllabus","labels_url":"https://api.github.com/repos/IIC2233-2016-02/Syllabus/issues/511/labels{/name}","comments_url":"https://api.github.com/repos/IIC2233-2016-02/Syllabus/issues/511/comments","events_url":"https://api.github.com/repos/IIC2233-2016-02/Syllabus/issues/511/events","html_url":"https://github.com/IIC2233-2016-02/Syllabus/issues/511","id":186048091,"number":511,"title":"Dudas sobre multithreading","user":{"login":"abannura","id":20782578,"avatar_url":"https://avatars.githubusercontent.com/u/20782578?v=3","gravatar_id":"","url":"https://api.github.com/users/abannura","html_url":"https://github.com/abannura","followers_url":"https://api.github.com/users/abannura/followers","following_url":"https://api.github.com/users/abannura/following{/other_user}","gists_url":"https://api.github.com/users/abannura/gists{/gist_id}","starred_url":"https://api.github.com/users/abannura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abannura/subscriptions","organizations_url":"https://api.github.com/users/abannura/orgs","repos_url":"https://api.github.com/users/abannura/repos","events_url":"https://api.github.com/users/abannura/events{/privacy}","received_events_url":"https://api.github.com/users/abannura/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-29T00:25:29Z","updated_at":"2016-10-29T00:25:29Z","closed_at":null,"body":"Tuve el siguiente error:\r\n\r\nQObject::setParent: Cannot set parent, new parent is in a different thread\r\nQPixmap: It is not safe to use pixmaps outside the GUI thread\r\n\r\nMe puse a investigar y a leer sobre multithreading y encontre varias cosas. Creo ya entender porque puede estar pasando, pero mi duda es mas general. No entiendo como pensar en los threads. Como se que thread esta dentro de otro? Cuando lo inicio en el metodo de run? No entiendo la estructura de los threads en mi programa y por lo tanto me cuesta mucho debuggearlo. Algunas dudas ya mas concretas:\r\n\r\n1) Por ejemplo, si creo un nuevo objeto QThread, pero no hago start de el, ese thread donde esta? Dentro del thread que lo creo o dentro del thread que le hizo start? \r\n\r\n2) Si no hago start de un thread, cuenta como thread? o es un objeto normal nomas.\r\n\r\n3) Como se dentro de que thread estoy? En el fondo para poder construir un arbol y hacerme la idea.\r\n\r\nCualquier ayuda o explicacion general sobre como funcionan estas cosas es muy bienvenida.\r\n"}}
{"actor":{"display_login":"abannura"}}