<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-6470</id>
	<title>Nabble - kde-devel-es</title>
	<updated>2009-12-04T10:16:13Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/kde-devel-es-f6470.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/kde-devel-es-f6470.html" />
	<subtitle type="html">Spanish KDE development list . Lista de desarrollo de KDE en espaÃ±ol</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26646796</id>
	<title>Búsqueda de sede para Akademy-es 2010</title>
	<published>2009-12-04T10:16:13Z</published>
	<updated>2009-12-04T10:16:13Z</updated>
	<author>
		<name>Albert Astals Cid-2</name>
	</author>
	<content type="html">KDE España organiza cada año el Akademy-es, una reunión de usuarios y 
&lt;br&gt;desarrolladores amantes de KDE en la que se celebran conferencias y talleres. 
&lt;br&gt;&lt;br&gt;Para ello, necesitamos la ayuda de un grupo/asociación que pueda ayudarnos a 
&lt;br&gt;organizar este evento en su Universidad/Ciudad/grupo de usuarios, etc.
&lt;br&gt;&lt;br&gt;Si estás interesado consulta &lt;a href=&quot;http://www.kde-espana.es/akademy-&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kde-espana.es/akademy-&lt;/a&gt;&lt;br&gt;es2010/ubicacion.php
&lt;br&gt;&lt;br&gt;Muchas gracias :-)
&lt;br&gt;&lt;br&gt;Albert
&lt;br&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26646796&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/B%C3%BAsqueda-de-sede-para-Akademy-es-2010-tp26646796p26646796.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26236910</id>
	<title>vim-doc-es: Manual de usuario de Vim</title>
	<published>2009-11-06T09:15:19Z</published>
	<updated>2009-11-06T09:15:19Z</updated>
	<author>
		<name>Omar Campagne</name>
	</author>
	<content type="html">Hola:
&lt;br&gt;&lt;br&gt;El proyecto vim-doc-es nació con la intención de ofrecer una correcta y
&lt;br&gt;completa traducción de Vim al español, incluyendo la documentación
&lt;br&gt;(páginas de manual y archivos de ayuda) así como la interfaz gráfica y
&lt;br&gt;los mensajes del programa.
&lt;br&gt;&lt;br&gt;A día de hoy, tanto los mensajes como la interfaz gráfica están
&lt;br&gt;completamente traducidos, y acabamos de publicar la primera versión del
&lt;br&gt;Manual de usuario de Vim.
&lt;br&gt;&lt;br&gt;Podeís encontrar las descargas tanto para la documentación como para la
&lt;br&gt;interfaz y mensajes (aún no disponibles en las distintas distribuciones)
&lt;br&gt;en la página principal del proyecto.
&lt;br&gt;&lt;br&gt;Deseamos que todos los interesados se descarguen el archivo
&lt;br&gt;vim-doc-es_0.1, que incluye algunos archivos de ayuda del Manual de
&lt;br&gt;usuario, aún incompleto.
&lt;br&gt;&lt;br&gt;Es nuestra intención que, con esto, vosotros nos ayudeís con vuestras
&lt;br&gt;correcciones y sugerencias a hacer una mejor labor. &amp;nbsp;Así mismo, el
&lt;br&gt;sistema de los archivos de ayuda en Vim hace un uso extensivo de las
&lt;br&gt;etiquetas en las búsquedas. &amp;nbsp;Agradeceríamos también cualquier consejo a
&lt;br&gt;la hora de introducir más etiquetas en español en los archivos de ayuda
&lt;br&gt;para así facilitar un uso más eficiente al usuario hispano hablante. 
&lt;br&gt;&lt;br&gt;Por supuesto, invitamos a quién lo desee a unirse a la labor de
&lt;br&gt;traducción para asi poder ofrecer lo más pronto posible la traducción
&lt;br&gt;completa del Manual de usuario.
&lt;br&gt;&lt;br&gt;Pero, por encima de todo, queremos que useís estos documentos.
&lt;br&gt;&lt;br&gt;Saludos,
&lt;br&gt;&lt;br&gt;vim-doc-es
&lt;br&gt;&lt;br&gt;Página principal: &lt;a href=&quot;https://www.assembla.com/wiki/show/vim-doc-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://www.assembla.com/wiki/show/vim-doc-es&lt;/a&gt;&amp;nbsp;
&lt;br&gt;Lista de correo: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26236910&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vim-doc-es@...&lt;/a&gt; 
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26236910&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/vim-doc-es%3A-Manual-de-usuario-de-Vim-tp26236910p26236910.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25809409</id>
	<title>Re: A QTreeView desde QListView</title>
	<published>2009-10-08T11:35:48Z</published>
	<updated>2009-10-08T11:35:48Z</updated>
	<author>
		<name>Aleix Pol-2</name>
	</author>
	<content type="html">Bueno... puedes hacer que el widget no responda al evento. Para eso, puedes hacer algo tipo:&lt;br&gt;void MyTree::someEvent(QEvent* e)&lt;br&gt;{&lt;br&gt;e-&amp;gt;ignore();&lt;br&gt;}&lt;br&gt;&lt;br&gt;Ahora bien, esto es liarse bastante y me hace pensar que estas usando el menu contextual como si fuera un menu normal.&lt;br&gt;
Fijate que se llama contextual porque depende del contexto, si el contexto es toda la aplicacion, ya no depende, entonces va al menú principal... no?&lt;br&gt;&lt;br&gt;Saludos!&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/10/8 Jaime Robles &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25809409&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jaime@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;Buenas,&lt;br&gt;
&lt;br&gt;
Siguiendo el consejo de Aleix...&lt;br&gt;
&lt;br&gt;
Estoy tratando de detectar si he pulsado el ratón con el botón derecho&lt;br&gt;
para sacar el típico menú contextual, he usado el mouseReleaseEvent, como&lt;br&gt;
aparece en la documentación   (estoy usando un ejemplo de la documentación&lt;br&gt;
de Qt &amp;quot;Scribble&amp;quot;) pero...&lt;br&gt;
&lt;br&gt;
Consigo detectar si uso ratón derecho o izquierdo sólo cuando pulso sobre&lt;br&gt;
zonas &amp;quot;genéricas&amp;quot; del widget principal, no cuando pulso sobre un&lt;br&gt;
qtreewidget...&lt;br&gt;
¿Cómo puedo definir el mouseReleaseEvent de un qtreewidget que defino en&lt;br&gt;
el fichero &amp;quot;.ui&amp;quot; y luego uso desde el .cpp?&lt;br&gt;
&lt;br&gt;
Por si alguien tiene curuiosidad de cómo anda klog (ya por fin he&lt;br&gt;
conseguido migrarlo casi del todo) teneis el SVN aquí:&lt;br&gt;
&lt;a href=&quot;http://svn.berlios.de/wsvn/klog/trunk/src/#_trunk_src_&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://svn.berlios.de/wsvn/klog/trunk/src/#_trunk_src_&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Gracias.&lt;br&gt;
&lt;br&gt;
&amp;gt; Para controlar la seleccion, tienes que usar el QSelectionModel que te&lt;br&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&amp;gt; devuelve QAbstractItemModel::selectionModel().&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; si lo que quieres es interceptar el mouse, puedes usar&lt;br&gt;
&amp;gt; QWidget::mouseReleaseEvent&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Saludos!&lt;br&gt;
&amp;gt; Aleix&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; 2009/8/27 Jaime Robles &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25809409&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jaime@...&lt;/a&gt;&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Buenas,&lt;br&gt;
&amp;gt;&amp;gt; Ando liado con la migración de QT3 a QT4 de KLog... Que no estoy&lt;br&gt;
&amp;gt;&amp;gt; perdiendo tiempo ni na... :-(&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; El caso es que me han quitado QListView para el uso que yo le daba y&lt;br&gt;
&amp;gt;&amp;gt; ahora creo que esa funcionalidad se da con QTreeView.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Mu pregunta... ¿Como se puede hacer para seleccionar un ítem con el&lt;br&gt;
&amp;gt;&amp;gt; botón derecho como se hacia en QListView y la señal&lt;br&gt;
&amp;gt;&amp;gt; rightbuttonclicked?&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Estoy mirando y no veo nada...&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Muchas gracias...&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Jaime&lt;br&gt;
&amp;gt;&amp;gt; _______________________________________________&lt;br&gt;
&amp;gt;&amp;gt; Kde-devel-es mailing list&lt;br&gt;
&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25809409&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&amp;gt;&amp;gt; &lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; _______________________________________________&lt;br&gt;
&amp;gt; Kde-devel-es mailing list&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25809409&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;font color=&quot;#888888&quot;&gt;--&lt;br&gt;
Un saludo,&lt;br&gt;
        Jaime Robles, EA4TV&lt;br&gt;
        &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25809409&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jaime@...&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Visita:&lt;br&gt;
   &lt;a href=&quot;http://jaime.robles.es&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://jaime.robles.es&lt;/a&gt;&lt;br&gt;
&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
_______________________________________________&lt;br&gt;
Kde-devel-es mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25809409&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25809409&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/A-QTreeView-desde-QListView-tp25214217p25809409.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25809353</id>
	<title>Re: A QTreeView desde QListView</title>
	<published>2009-10-08T11:31:29Z</published>
	<updated>2009-10-08T11:31:29Z</updated>
	<author>
		<name>Eloy Cuadra</name>
	</author>
	<content type="html">Hola,
&lt;br&gt;&lt;br&gt;El jueves, 8 de octubre de 2009, Jaime Robles escribió:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Estoy tratando de detectar si he pulsado el ratón con el botón derecho
&lt;br&gt;&amp;gt; para sacar el típico menú contextual, he usado el mouseReleaseEvent, como
&lt;br&gt;&amp;gt; aparece en la documentación &amp;nbsp; (estoy usando un ejemplo de la documentación
&lt;br&gt;&amp;gt; de Qt &amp;quot;Scribble&amp;quot;) pero...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Consigo detectar si uso ratón derecho o izquierdo sólo cuando pulso sobre
&lt;br&gt;&amp;gt; zonas &amp;quot;genéricas&amp;quot; del widget principal, no cuando pulso sobre un
&lt;br&gt;&amp;gt; qtreewidget...
&lt;br&gt;&amp;gt; ¿Cómo puedo definir el mouseReleaseEvent de un qtreewidget que defino en
&lt;br&gt;&amp;gt; el fichero &amp;quot;.ui&amp;quot; y luego uso desde el .cpp?
&lt;/div&gt;&lt;br&gt;Yo me olvidaría de mouseReleaseEvent para eso y me ocuparía de conectar la 
&lt;br&gt;señal customContextMenuRequested del QTreeWidget con una función tuya que 
&lt;br&gt;muestre el menú de contexto:
&lt;br&gt;&lt;br&gt;&amp;nbsp; connect( qtreewidget, SIGNAL( customContextMenuRequested( const QPoint&amp; ) ),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this, SLOT( itemContextMenu( const QPoint&amp; ) ) );
&lt;br&gt;&lt;br&gt;Y luego usa algo como:
&lt;br&gt;&lt;br&gt;void MyAppWindowView::itemContextMenu( const QPoint&amp; pos )
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; QMenu menu(this);
&lt;br&gt;&amp;nbsp; menu.setTitle(&amp;quot;context&amp;quot;);
&lt;br&gt;&amp;nbsp; // añade las acciones pertinentes aquí
&lt;br&gt;&lt;br&gt;&amp;nbsp; menu.exec(QCursor::pos());
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;Un saludo,
&lt;br&gt;-- 
&lt;br&gt;Eloy Cuadra
&lt;br&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25809353&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/A-QTreeView-desde-QListView-tp25214217p25809353.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25809157</id>
	<title>Re: A QTreeView desde QListView</title>
	<published>2009-10-08T11:21:09Z</published>
	<updated>2009-10-08T11:21:09Z</updated>
	<author>
		<name>Jaime Robles-4</name>
	</author>
	<content type="html">Buenas,
&lt;br&gt;&lt;br&gt;Siguiendo el consejo de Aleix...
&lt;br&gt;&lt;br&gt;Estoy tratando de detectar si he pulsado el ratón con el botón derecho
&lt;br&gt;para sacar el típico menú contextual, he usado el mouseReleaseEvent, como
&lt;br&gt;aparece en la documentación &amp;nbsp; (estoy usando un ejemplo de la documentación
&lt;br&gt;de Qt &amp;quot;Scribble&amp;quot;) pero...
&lt;br&gt;&lt;br&gt;Consigo detectar si uso ratón derecho o izquierdo sólo cuando pulso sobre
&lt;br&gt;zonas &amp;quot;genéricas&amp;quot; del widget principal, no cuando pulso sobre un
&lt;br&gt;qtreewidget...
&lt;br&gt;¿Cómo puedo definir el mouseReleaseEvent de un qtreewidget que defino en
&lt;br&gt;el fichero &amp;quot;.ui&amp;quot; y luego uso desde el .cpp?
&lt;br&gt;&lt;br&gt;Por si alguien tiene curuiosidad de cómo anda klog (ya por fin he
&lt;br&gt;conseguido migrarlo casi del todo) teneis el SVN aquí:
&lt;br&gt;&lt;a href=&quot;http://svn.berlios.de/wsvn/klog/trunk/src/#_trunk_src_&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.berlios.de/wsvn/klog/trunk/src/#_trunk_src_&lt;/a&gt;&lt;br&gt;&lt;br&gt;Gracias.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Para controlar la seleccion, tienes que usar el QSelectionModel que te
&lt;br&gt;&amp;gt; devuelve QAbstractItemModel::selectionModel().
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; si lo que quieres es interceptar el mouse, puedes usar
&lt;br&gt;&amp;gt; QWidget::mouseReleaseEvent
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Saludos!
&lt;br&gt;&amp;gt; Aleix
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2009/8/27 Jaime Robles &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25809157&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jaime@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Buenas,
&lt;br&gt;&amp;gt;&amp;gt; Ando liado con la migración de QT3 a QT4 de KLog... Que no estoy
&lt;br&gt;&amp;gt;&amp;gt; perdiendo tiempo ni na... :-(
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; El caso es que me han quitado QListView para el uso que yo le daba y
&lt;br&gt;&amp;gt;&amp;gt; ahora creo que esa funcionalidad se da con QTreeView.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Mu pregunta... ¿Como se puede hacer para seleccionar un ítem con el
&lt;br&gt;&amp;gt;&amp;gt; botón derecho como se hacia en QListView y la señal
&lt;br&gt;&amp;gt;&amp;gt; rightbuttonclicked?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Estoy mirando y no veo nada...
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Muchas gracias...
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Jaime
&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; Kde-devel-es mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25809157&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Kde-devel-es mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25809157&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Un saludo,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Jaime Robles, EA4TV
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25809157&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jaime@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;Visita:
&lt;br&gt;&amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://jaime.robles.es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jaime.robles.es&lt;/a&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25809157&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/A-QTreeView-desde-QListView-tp25214217p25809157.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25679520</id>
	<title>Re: Iconos en KDE4</title>
	<published>2009-09-30T04:52:36Z</published>
	<updated>2009-09-30T04:52:36Z</updated>
	<author>
		<name>Jaime Robles-4</name>
	</author>
	<content type="html">&lt;br&gt;&amp;gt; si, KIcon :) se encarga de todo
&lt;br&gt;&amp;gt;&amp;gt; Mi pregunta iba enfocada sobretodo a cómo usar los iconos &amp;quot;estándar&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; que ya tengo en mi distribución (los que salen en el listado de
&lt;br&gt;&amp;gt;&amp;gt; freedesktop) desde el código de KLog/KDE.
&lt;br&gt;Ah!
&lt;br&gt;Ok.
&lt;br&gt;En ti mensaje, me pareció entender que a KIcon le tenías que pasael nombre
&lt;br&gt;del fichero, no del icono... y por eso repetí la pregunta porque pensé que
&lt;br&gt;no me había explicado bien O:-)
&lt;br&gt;&lt;br&gt;Gracias por la re-explicación... a ver si esta tarde tengo un rato para
&lt;br&gt;probarlo.
&lt;br&gt;&lt;br&gt;Thanks!
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Un saludo,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Jaime Robles - &lt;a href=&quot;http://jaime.robles.es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jaime.robles.es&lt;/a&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25679520&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jaime@...&lt;/a&gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Coordinador KDE-es - KDE Spanish Translation Team
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.kde.org/es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.kde.org/es&lt;/a&gt;&amp;nbsp; - &lt;a href=&quot;http://es.l10n.kde.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://es.l10n.kde.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25679520&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Iconos-en-KDE4-tp25668944p25679520.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25678912</id>
	<title>Re: Iconos en KDE4</title>
	<published>2009-09-30T03:57:49Z</published>
	<updated>2009-09-30T03:57:49Z</updated>
	<author>
		<name>Bugzilla from pedro.lopez.cabanillas@gmail.com</name>
	</author>
	<content type="html">On Wednesday, September 30, 2009, Jaime Robles wrote:
&lt;br&gt;&amp;gt; Mi pregunta iba enfocada sobretodo a cómo usar los iconos &amp;quot;estándar&amp;quot;
&lt;br&gt;&amp;gt; que ya tengo en mi distribución (los que salen en el listado de
&lt;br&gt;&amp;gt; freedesktop) desde el código de KLog/KDE.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Los iconos no se su están en todas las distros en el mismo
&lt;br&gt;&amp;gt; directorio... y supongo que habrá alguna forma de llamar a los iconos
&lt;br&gt;&amp;gt; de forma &amp;quot;general&amp;quot; ¿no?
&lt;br&gt;&lt;br&gt;Los nombres neutrales de los iconos son los que figuran en el listado de 
&lt;br&gt;freedesktop. Estos nombres se usan directamente en el constructor de KIcon, 
&lt;br&gt;tal como dijo Aleix. Por ejemplo:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; KAction *a = new KAction(this);
&lt;br&gt;&amp;nbsp; &amp;nbsp; a-&amp;gt;setIcon(KIcon(&amp;quot;media-playback-start&amp;quot;));
&lt;br&gt;&lt;br&gt;Pero también hay acciones estándar, que ya incluyen el icono apropiado sin que 
&lt;br&gt;sea necesario asignarles una instancia de KIcon. 
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; a = KStandardAction::quit(kapp, SLOT(quit()), actionCollection());
&lt;br&gt;&amp;nbsp; &amp;nbsp; a = KStandardAction::open(this, SLOT(fileOpen()), actionCollection());
&lt;br&gt;&amp;nbsp; &amp;nbsp; a = KStandardAction::openNew(this, SLOT(fileNew()), actionCollection());
&lt;br&gt;&amp;nbsp; &amp;nbsp; a = KStandardAction::saveAs(this, SLOT(fileSave()), actionCollection());
&lt;br&gt;&lt;br&gt;En cualquier caso, en tiempo de ejecución se buscarán los iconos en el 
&lt;br&gt;directorio adecuado de acuerdo con la distribución, y también con el 
&lt;br&gt;tema/estilo del escritorio que haya sido configurado por el usuario.
&lt;br&gt;&lt;br&gt;Saludos,
&lt;br&gt;Pedro
&lt;br&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25678912&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Iconos-en-KDE4-tp25668944p25678912.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25678796</id>
	<title>Re: Iconos en KDE4</title>
	<published>2009-09-30T03:48:29Z</published>
	<updated>2009-09-30T03:48:29Z</updated>
	<author>
		<name>Aleix Pol-2</name>
	</author>
	<content type="html">si, KIcon :) se encarga de todo&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/9/30 Jaime Robles &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25678796&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jaime@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Gracias a los dos.&lt;br&gt;
&lt;br&gt;
Mi pregunta iba enfocada sobretodo a cómo usar los iconos &amp;quot;estándar&amp;quot;&lt;br&gt;
que ya tengo en mi distribución (los que salen en el listado de&lt;br&gt;
freedesktop) desde el código de KLog/KDE.&lt;br&gt;
&lt;br&gt;
Los iconos no se su están en todas las distros en el mismo&lt;br&gt;
directorio... y supongo que habrá alguna forma de llamar a los iconos&lt;br&gt;
de forma &amp;quot;general&amp;quot; ¿no?&lt;br&gt;
&lt;br&gt;
Thanks&lt;br&gt;
&lt;br&gt;
Jaime&lt;br&gt;
&lt;br&gt;
El 29/09/2009, a las 21:20, Pedro Lopez-Cabanillas &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25678796&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pedro.lopez.cabanillas@...&lt;/a&gt;&lt;br&gt;
 &amp;gt; escribió:&lt;br&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
&amp;gt; On Tuesday, September 29, 2009, Aleix Pol wrote:&lt;br&gt;
&amp;gt;&amp;gt; Pues para algunas acciones puedes simplemente usar KStandardAction.&lt;br&gt;
&amp;gt;&amp;gt; Sino, pues KIcon(&amp;quot;nombredelicono&amp;quot;), puedes sacar el pixmap de alli.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Y los nombres de los iconos estándar están en esta lista:&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; 2009/9/29 Jaime Robles &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25678796&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jaime@...&lt;/a&gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt; Buenas,&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt; Tras MUCHOS problemas con KLog... desde hace unos días ya está&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt;  de nu&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt; evo &amp;quot;funcionando&amp;quot;.&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt; Ahora me pregunto... ¿me puede alguien dar un puntero a la doc&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt; umenta&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt; ción donde explica cómo usar los iconos?&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt; Quiero usar los típicos iconos de &amp;quot;guardar&amp;quot;, &amp;quot;nuevo&amp;quot;, y demás.&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt; .. en&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&amp;gt; la toolbar.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Saludos,&lt;br&gt;
&amp;gt; Pedro&lt;br&gt;
&amp;gt; _______________________________________________&lt;br&gt;
&amp;gt; Kde-devel-es mailing list&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25678796&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
_______________________________________________&lt;br&gt;
Kde-devel-es mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25678796&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25678796&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Iconos-en-KDE4-tp25668944p25678796.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25674865</id>
	<title>Re: Iconos en KDE4</title>
	<published>2009-09-29T21:28:42Z</published>
	<updated>2009-09-29T21:28:42Z</updated>
	<author>
		<name>Jaime Robles-4</name>
	</author>
	<content type="html">Gracias a los dos.
&lt;br&gt;&lt;br&gt;Mi pregunta iba enfocada sobretodo a cómo usar los iconos &amp;quot;estándar&amp;quot; &amp;nbsp;
&lt;br&gt;que ya tengo en mi distribución (los que salen en el listado de &amp;nbsp;
&lt;br&gt;freedesktop) desde el código de KLog/KDE.
&lt;br&gt;&lt;br&gt;Los iconos no se su están en todas las distros en el mismo &amp;nbsp;
&lt;br&gt;directorio... y supongo que habrá alguna forma de llamar a los iconos &amp;nbsp;
&lt;br&gt;de forma &amp;quot;general&amp;quot; ¿no?
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;&lt;br&gt;Jaime
&lt;br&gt;&lt;br&gt;El 29/09/2009, a las 21:20, Pedro Lopez-Cabanillas &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25674865&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pedro.lopez.cabanillas@...&lt;/a&gt; 
&lt;br&gt;&amp;nbsp;&amp;gt; escribió:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Tuesday, September 29, 2009, Aleix Pol wrote:
&lt;br&gt;&amp;gt;&amp;gt; Pues para algunas acciones puedes simplemente usar KStandardAction.
&lt;br&gt;&amp;gt;&amp;gt; Sino, pues KIcon(&amp;quot;nombredelicono&amp;quot;), puedes sacar el pixmap de alli.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Y los nombres de los iconos estándar están en esta lista:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 2009/9/29 Jaime Robles &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25674865&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jaime@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Buenas,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Tras MUCHOS problemas con KLog... desde hace unos días ya está 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;de nu
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; evo &amp;quot;funcionando&amp;quot;.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Ahora me pregunto... ¿me puede alguien dar un puntero a la doc 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; umenta
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ción donde explica cómo usar los iconos?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Quiero usar los típicos iconos de &amp;quot;guardar&amp;quot;, &amp;quot;nuevo&amp;quot;, y demás. 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; .. en
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; la toolbar.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Saludos,
&lt;br&gt;&amp;gt; Pedro
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Kde-devel-es mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25674865&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;/div&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25674865&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Iconos-en-KDE4-tp25668944p25674865.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25669262</id>
	<title>Re: Iconos en KDE4</title>
	<published>2009-09-29T12:20:55Z</published>
	<updated>2009-09-29T12:20:55Z</updated>
	<author>
		<name>Bugzilla from pedro.lopez.cabanillas@gmail.com</name>
	</author>
	<content type="html">On Tuesday, September 29, 2009, Aleix Pol wrote:
&lt;br&gt;&amp;gt; Pues para algunas acciones puedes simplemente usar KStandardAction.
&lt;br&gt;&amp;gt; Sino, pues KIcon(&amp;quot;nombredelicono&amp;quot;), puedes sacar el pixmap de alli.
&lt;br&gt;&lt;br&gt;Y los nombres de los iconos estándar están en esta lista:
&lt;br&gt;&lt;a href=&quot;http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html&lt;/a&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 2009/9/29 Jaime Robles &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25669262&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jaime@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Buenas,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Tras MUCHOS problemas con KLog... desde hace unos días ya está de nu
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; evo &amp;quot;funcionando&amp;quot;.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Ahora me pregunto... ¿me puede alguien dar un puntero a la documenta
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; ción donde explica cómo usar los iconos?
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Quiero usar los típicos iconos de &amp;quot;guardar&amp;quot;, &amp;quot;nuevo&amp;quot;, y demás... en
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; la toolbar.
&lt;/div&gt;&lt;br&gt;Saludos,
&lt;br&gt;Pedro
&lt;br&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25669262&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Iconos-en-KDE4-tp25668944p25669262.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25669057</id>
	<title>Re: Iconos en KDE4</title>
	<published>2009-09-29T12:06:42Z</published>
	<updated>2009-09-29T12:06:42Z</updated>
	<author>
		<name>Aleix Pol-2</name>
	</author>
	<content type="html">Pues para algunas acciones puedes simplemente usar KStandardAction.&lt;br&gt;Sino, pues KIcon(&amp;quot;nombredelicono&amp;quot;), puedes sacar el pixmap de alli.&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/9/29 Jaime Robles &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25669057&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jaime@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&amp;gt; Buenas,&lt;br&gt;
&amp;gt; Tras MUCHOS problemas con KLog... desde hace unos días ya está de nu&lt;br&gt;
&amp;gt; evo &amp;quot;funcionando&amp;quot;.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Ahora me pregunto... ¿me puede alguien dar un puntero a la documenta&lt;br&gt;
&amp;gt; ción donde explica cómo usar los iconos?&lt;br&gt;
&lt;br&gt;
&amp;gt; Quiero usar los típicos iconos de &amp;quot;guardar&amp;quot;, &amp;quot;nuevo&amp;quot;, y demás... en&lt;br&gt;
&amp;gt; la toolbar.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Gracias!&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; --&lt;br&gt;
&amp;gt; Un saludo,&lt;br&gt;
&amp;gt;    Jaime Robles, EA4TV&lt;br&gt;
&amp;gt;    &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25669057&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jaime@...&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Visita:&lt;br&gt;
&amp;gt;   &lt;a href=&quot;http://jaime.robles.es&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://jaime.robles.es&lt;/a&gt;&lt;br&gt;
_______________________________________________&lt;br&gt;
Kde-devel-es mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25669057&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25669057&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Iconos-en-KDE4-tp25668944p25669057.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25668944</id>
	<title>Iconos en KDE4</title>
	<published>2009-09-29T11:59:16Z</published>
	<updated>2009-09-29T11:59:16Z</updated>
	<author>
		<name>Jaime Robles-4</name>
	</author>
	<content type="html">&amp;gt; Buenas,
&lt;br&gt;&amp;gt; Tras MUCHOS problemas con KLog... desde hace unos días ya está de nu 
&lt;br&gt;&amp;gt; evo &amp;quot;funcionando&amp;quot;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Ahora me pregunto... ¿me puede alguien dar un puntero a la documenta 
&lt;br&gt;&amp;gt; ción donde explica cómo usar los iconos?
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Quiero usar los típicos iconos de &amp;quot;guardar&amp;quot;, &amp;quot;nuevo&amp;quot;, y demás... en &amp;nbsp;
&lt;br&gt;&amp;gt; la toolbar.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Gracias!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; Un saludo,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Jaime Robles, EA4TV
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25668944&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jaime@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Visita:
&lt;br&gt;&amp;gt; &amp;nbsp; &lt;a href=&quot;http://jaime.robles.es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jaime.robles.es&lt;/a&gt;&lt;/div&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25668944&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Iconos-en-KDE4-tp25668944p25668944.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25660097</id>
	<title>[PATCH] KMid: draw note events</title>
	<published>2009-09-29T02:56:47Z</published>
	<updated>2009-09-29T02:56:47Z</updated>
	<author>
		<name>Bugzilla from pedro.lopez.cabanillas@gmail.com</name>
	</author>
	<content type="html">Hola,
&lt;br&gt;&lt;br&gt;Desde la migración a KDE4, KMid ya no pinta los eventos de notas en los 
&lt;br&gt;teclados de la vista de canales. En cambio, se pueden ver una serie de 
&lt;br&gt;mensajes en el terminal:
&lt;br&gt;&lt;br&gt;QPainter::begin: Widget painting can only begin as a result of a paintEvent
&lt;br&gt;QPainter::setPen: Painter not active
&lt;br&gt;&lt;br&gt;El parche adjunto lo soluciona.
&lt;br&gt;&lt;br&gt;Saludos,
&lt;br&gt;Pedro
&lt;br&gt;&lt;br&gt;- -
&lt;br&gt;&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;Since the KDE4 migration, KMid doesn't draw the note events on the keyboard 
&lt;br&gt;widget of the channels view. Instead, you can see the following messages in 
&lt;br&gt;the terminal:
&lt;br&gt;&lt;br&gt;QPainter::begin: Widget painting can only begin as a result of a paintEvent
&lt;br&gt;QPainter::setPen: Painter not active
&lt;br&gt;&lt;br&gt;The attached patch solves the issue.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Pedro
&lt;br&gt;&lt;br /&gt;&lt;tt&gt;[kmid-svn-channel.patch]&lt;/tt&gt;&lt;br /&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;tt&gt;Index: channel.cpp
&lt;br&gt;===================================================================
&lt;br&gt;--- channel.cpp	(revisión: 1028792)
&lt;br&gt;+++ channel.cpp	(copia de trabajo)
&lt;br&gt;@@ -50,6 +50,7 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;replay=TRUE;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;int i;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;for (i=0;i&amp;lt;128;i++) pressed[i]=0;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;setAttribute(Qt::WA_PaintOutsidePaintEvent, true);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;keyboard = QPixmap(KStandardDirs::locate(&amp;quot;appdata&amp;quot;,&amp;quot;icons/keyboard.xpm&amp;quot;));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;penB = new QPen (Qt::black);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;penW = new QPen (Qt::white);
&lt;br&gt;&lt;/tt&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25660097&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--KMid%3A-draw-note-events-tp25660097p25660097.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25337189</id>
	<title>Re: Migrando KLog... ¿Alguna sugerencia?</title>
	<published>2009-09-07T15:10:01Z</published>
	<updated>2009-09-07T15:10:01Z</updated>
	<author>
		<name>Albert Astals Cid-2</name>
	</author>
	<content type="html">A Dilluns, 7 de setembre de 2009, Aleix Pol va escriure:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 2009/9/7 Jaime Robles &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25337189&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jaime@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Buenas Albert,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; MUCHAS GRACIAS por tu ayuda!!
&lt;br&gt;&amp;gt; &amp;gt; Evidentemente, todos los fallos son mi culpa y no de Qt ni KDE X'DD que
&lt;br&gt;&amp;gt; &amp;gt; no se programar, las cosas como son!
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Basicamente como la culpa no es de Qt sino tuya (por definicion en el
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 99% de los casos) esto significa que el problema esta en setup.cpp
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; linea 887.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; P: Pero entonces no compila!
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; R: Porque en el setupui.ui dices que quieres que tu padre sea un
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; QDialog y luego en setup.h usas un QWidget. Haz que la clase Setup sea
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; un QDialog
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Eso es definiendo
&lt;br&gt;&amp;gt; &amp;gt; Ahora está así:
&lt;br&gt;&amp;gt; &amp;gt; =========================
&lt;br&gt;&amp;gt; &amp;gt; class Setup :public QWidget, &amp;nbsp;public Ui_setupui{
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;Q_OBJECT
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;public:
&lt;br&gt;&amp;gt; &amp;gt; =========================
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; ¿Se hace así?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; =========================
&lt;br&gt;&amp;gt; &amp;gt; class Setup :public QDialog, &amp;nbsp;public Ui_setupui{
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;public:
&lt;br&gt;&amp;gt; &amp;gt; =========================
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; No, el Ui_ debe ser un miembro de la clase, asi no tienes que incluirlo
&lt;br&gt;&amp;gt; &amp;gt; en
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; el .h.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; De esta forma, en el constructor simplemente pones:
&lt;br&gt;&amp;gt; Ui_miUi *ui=new Ui_miUi;
&lt;br&gt;&amp;gt; ui-&amp;gt;setupUi(this);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; O si estas usando un QDialog, el widget que estés usando para poner el
&lt;br&gt;&amp;gt; contenido.
&lt;/div&gt;&lt;br&gt;De hecho &amp;quot;lo normal&amp;quot; es hacer lo que Aleix dice y poner el Ui_ como miembro, 
&lt;br&gt;pero heredar de el tampoco esta &amp;quot;mal&amp;quot; per se. Si decides heredar de el si, 
&lt;br&gt;seria lo que tu dices.
&lt;br&gt;&lt;br&gt;Albert
&lt;br&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25337189&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Migrando-KLog...-%C2%BFAlguna-sugerencia--tp25280478p25337189.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25329698</id>
	<title>Re: Migrando KLog... ¿Alguna sugerencia?</title>
	<published>2009-09-07T05:21:31Z</published>
	<updated>2009-09-07T05:21:31Z</updated>
	<author>
		<name>Aleix Pol-2</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/9/7 Jaime Robles &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25329698&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jaime@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Buenas Albert,&lt;br&gt;
&lt;br&gt;
MUCHAS GRACIAS por tu ayuda!!&lt;br&gt;
Evidentemente, todos los fallos son mi culpa y no de Qt ni KDE X&amp;#39;DD que no&lt;br&gt;
se programar, las cosas como son!&lt;br&gt;
&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
&lt;br&gt;
&amp;gt; Basicamente como la culpa no es de Qt sino tuya (por definicion en el 99%&lt;br&gt;
&amp;gt; de los casos) esto significa que el problema esta en setup.cpp linea 887.&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;div class=&quot;im&quot;&gt;&amp;gt; P: Pero entonces no compila!&lt;br&gt;
&amp;gt; R: Porque en el setupui.ui dices que quieres que tu padre sea un QDialog&lt;br&gt;
&amp;gt;    y luego en setup.h usas un QWidget. Haz que la clase Setup sea un&lt;br&gt;
&amp;gt; QDialog&lt;br&gt;
&lt;/div&gt;Eso es definiendo&lt;br&gt;
Ahora está así:&lt;br&gt;
=========================&lt;br&gt;
class Setup :public QWidget,  public Ui_setupui{&lt;br&gt;
  Q_OBJECT&lt;br&gt;
  public:&lt;br&gt;
=========================&lt;br&gt;
&lt;br&gt;
¿Se hace así?&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
=========================&lt;br&gt;
class Setup :public QDialog,  public Ui_setupui{&lt;br&gt;
  public:&lt;br&gt;
=========================&lt;br&gt;
&lt;div class=&quot;im&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;No, el Ui_ debe ser un miembro de la clase, asi no tienes que incluirlo en el .h.&lt;br&gt;&lt;br&gt;De esta forma, en el constructor simplemente pones:&lt;br&gt;Ui_miUi *ui=new Ui_miUi;&lt;br&gt;ui-&amp;gt;setupUi(this);&lt;br&gt;
&lt;br&gt;O si estas usando un QDialog, el widget que estés usando para poner el contenido.&lt;br&gt; &lt;br&gt;&lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div class=&quot;im&quot;&gt;
&lt;br&gt;
&amp;gt; P: Pero entonces sigue sin arrancar!&lt;br&gt;
&amp;gt; R: El señor gdb te servirá para ver que tienes un bucle infinito en el&lt;br&gt;
&amp;gt;    que Klog::readConf llama a Klog::slotKlogSetup que llama a&lt;br&gt;
&amp;gt; Klog::readConf&lt;br&gt;
&amp;gt; El como arreglar este último problema ya es cosa tuya.&lt;br&gt;
&lt;/div&gt;Ups!&lt;br&gt;
Pues no había caído en esto... y tienes TODA la razón.&lt;br&gt;
Lo he arreglado ya... era una simple comprobación, por si era la primera&lt;br&gt;
vez que se arrancaba klog en una máquina, para generar el tipico &amp;quot;klogrc&amp;quot;.&lt;br&gt;
&lt;br&gt;
MUCHAS GRACIAS Albert, de verdad :-)&amp;#39;&amp;#39;&lt;br&gt;
&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
--&lt;br&gt;
Un saludo,&lt;br&gt;
        Jaime Robles, EA4TV&lt;br&gt;
        &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25329698&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jaime@...&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Visita:&lt;br&gt;
   &lt;a href=&quot;http://jaime.robles.es&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://jaime.robles.es&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
_______________________________________________&lt;br&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;Kde-devel-es mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25329698&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25329698&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Migrando-KLog...-%C2%BFAlguna-sugerencia--tp25280478p25329698.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25325650</id>
	<title>Re: Migrando KLog... ¿Alguna sugerencia?</title>
	<published>2009-09-06T23:38:47Z</published>
	<updated>2009-09-06T23:38:47Z</updated>
	<author>
		<name>Jaime Robles</name>
	</author>
	<content type="html">Buenas Albert,
&lt;br&gt;&lt;br&gt;MUCHAS GRACIAS por tu ayuda!!
&lt;br&gt;Evidentemente, todos los fallos son mi culpa y no de Qt ni KDE X'DD que no
&lt;br&gt;se programar, las cosas como son!
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; Basicamente como la culpa no es de Qt sino tuya (por definicion en el 99%
&lt;br&gt;&amp;gt; de los casos) esto significa que el problema esta en setup.cpp linea 887.
&lt;br&gt;&lt;br&gt;&amp;gt; P: Pero entonces no compila!
&lt;br&gt;&amp;gt; R: Porque en el setupui.ui dices que quieres que tu padre sea un QDialog
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;y luego en setup.h usas un QWidget. Haz que la clase Setup sea un
&lt;br&gt;&amp;gt; QDialog
&lt;br&gt;Eso es definiendo
&lt;br&gt;Ahora está así:
&lt;br&gt;=========================
&lt;br&gt;class Setup :public QWidget, &amp;nbsp;public Ui_setupui{
&lt;br&gt;&amp;nbsp; Q_OBJECT
&lt;br&gt;&amp;nbsp; public:
&lt;br&gt;=========================
&lt;br&gt;&lt;br&gt;¿Se hace así?
&lt;br&gt;&lt;br&gt;&lt;br&gt;=========================
&lt;br&gt;class Setup :public QDialog, &amp;nbsp;public Ui_setupui{
&lt;br&gt;&amp;nbsp; public:
&lt;br&gt;=========================
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; P: Pero entonces sigue sin arrancar!
&lt;br&gt;&amp;gt; R: El señor gdb te servirá para ver que tienes un bucle infinito en el
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;que Klog::readConf llama a Klog::slotKlogSetup que llama a
&lt;br&gt;&amp;gt; Klog::readConf
&lt;br&gt;&amp;gt; El como arreglar este último problema ya es cosa tuya.
&lt;br&gt;Ups!
&lt;br&gt;Pues no había caído en esto... y tienes TODA la razón.
&lt;br&gt;Lo he arreglado ya... era una simple comprobación, por si era la primera
&lt;br&gt;vez que se arrancaba klog en una máquina, para generar el tipico &amp;quot;klogrc&amp;quot;.
&lt;br&gt;&lt;br&gt;MUCHAS GRACIAS Albert, de verdad :-)''
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Un saludo,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Jaime Robles, EA4TV
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25325650&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jaime@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;Visita:
&lt;br&gt;&amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://jaime.robles.es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jaime.robles.es&lt;/a&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25325650&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Migrando-KLog...-%C2%BFAlguna-sugerencia--tp25280478p25325650.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25307395</id>
	<title>Re: Migrando KLog... ¿Alguna sugerencia?</title>
	<published>2009-09-05T04:23:04Z</published>
	<updated>2009-09-05T04:23:04Z</updated>
	<author>
		<name>Albert Astals Cid-2</name>
	</author>
	<content type="html">A Dijous, 3 de setembre de 2009, Jaime Robles va escriure:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Buenas de nuevo,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Ya tengo compilando KLog... con MUCHOS &amp;quot;warnings&amp;quot; pero por lo menos
&lt;br&gt;&amp;gt; compila con Qt4/KDE4 ':-)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Ahora estoy con el problema de que muere nada más arrancarlo y no se por
&lt;br&gt;&amp;gt; dónde tirar.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Supongo que será un problema derivado de mi falta de conocimiento de
&lt;br&gt;&amp;gt; programación... por lo que probablemente esté haciendo una barbaridad... y
&lt;br&gt;&amp;gt; en eso confío para pedir por aquí algo de ayuda, que sea una barbaridad
&lt;br&gt;&amp;gt; fácil de identificar por alguien con los mínimos conocimientos.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ¿Se anima alguien a compilar el código y ver el error que da? A ver si
&lt;br&gt;&amp;gt; alguien me puede orientar en el buen camino... por favor.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; El código es una &amp;quot;guarrada&amp;quot;... lo era antes de la migración pero lo que
&lt;br&gt;&amp;gt; tengo ahora... bueno, me da hasta vergüenza publicarlo!! X'DDD
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Está aquí:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://jaime.robles.es/klog/download/unstable/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jaime.robles.es/klog/download/unstable/&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Muchas gracias...
&lt;/div&gt;&lt;br&gt;Te falta un cmake check para libhamlib-dev
&lt;br&gt;&lt;br&gt;El código no compila tienes 
&lt;br&gt;./src/awarddxcc.h:28:const int ENTITIES = 400;
&lt;br&gt;./src/entity.h:29:#define ENTITIES 340
&lt;br&gt;./src/awardwaz.h:28:const int ENTITIES = 400;
&lt;br&gt;./src/awardiota.h:27:const int ENTITIES = 400;
&lt;br&gt;&lt;br&gt;cuando alguno de los 3 const incluye a entity.h queda algo como
&lt;br&gt;const int 340 = 400;
&lt;br&gt;y el compilador dice
&lt;br&gt;error: expected unqualified-id before numeric constant
&lt;br&gt;&lt;br&gt;Una vez comentado el #define de entity.h compila y peta al arrancar
&lt;br&gt;&lt;br&gt;El señor valgrind nos dice
&lt;br&gt;&lt;br&gt;Use of uninitialised value of size 8 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp;at 0x78DC3D4: QComboBox::d_func() const (qcombobox.h:303) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp;by 0x78CF373: QComboBox::count() const (qcombobox.cpp:1264) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp;by 0x43A6B5: QComboBox::insertStringList(QStringList const&amp;, int) 
&lt;br&gt;(qcombobox.h:279) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp;by 0x443C90: Setup::setRig() (setup.cpp:887) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;by 0x4484E2: Setup::Setup(QWidget*, char const*) (setup.cpp:46) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp;by 0x422C37: Klog::slotKlogSetup() (klog.cpp:4597) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;by 0x422B72: Klog::readConf() (klog.cpp:2316) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp;by 0x438164: Klog::Klog(QWidget*, char const*) (klog.cpp:109) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp;by 0x43CC28: main (main.cpp:59) &amp;nbsp; &amp;nbsp;
&lt;br&gt;&lt;br&gt;Basicamente como la culpa no es de Qt sino tuya (por definicion en el 99% de 
&lt;br&gt;los casos) esto significa que el problema esta en setup.cpp linea 887.
&lt;br&gt;&lt;br&gt;P: ¿Que estás haciendo ahi? 
&lt;br&gt;R: Usar comboBoxTrvList.
&lt;br&gt;&lt;br&gt;P: ¿Que puede haber de malo en eso?
&lt;br&gt;R: Que no se haya hecho new del puntero
&lt;br&gt;&lt;br&gt;P: Pero si es parte de mi fichero ui! Eso significa que es culpa de Qt
&lt;br&gt;R: No, eso significa que no has llamado a setupUi.
&lt;br&gt;&amp;nbsp; &amp;nbsp;Haz setupUi(this) en la primera linea del constructor
&lt;br&gt;&lt;br&gt;P: Pero entonces no compila!
&lt;br&gt;R: Porque en el setupui.ui dices que quieres que tu padre sea un QDialog
&lt;br&gt;&amp;nbsp; &amp;nbsp;y luego en setup.h usas un QWidget. Haz que la clase Setup sea un QDialog
&lt;br&gt;&lt;br&gt;P: Pero entonces sigue sin arrancar!
&lt;br&gt;R: El señor gdb te servirá para ver que tienes un bucle infinito en el
&lt;br&gt;&amp;nbsp; &amp;nbsp;que Klog::readConf llama a Klog::slotKlogSetup que llama a Klog::readConf
&lt;br&gt;&lt;br&gt;El como arreglar este último problema ya es cosa tuya.
&lt;br&gt;&lt;br&gt;Albert
&lt;br&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25307395&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Migrando-KLog...-%C2%BFAlguna-sugerencia--tp25280478p25307395.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25304423</id>
	<title>Re: Matar hilos (QThread) pasado un tiempo sin hacer	sleep</title>
	<published>2009-09-04T19:07:09Z</published>
	<updated>2009-09-04T19:07:09Z</updated>
	<author>
		<name>Guillem Barba-3</name>
	</author>
	<content type="html">A Dimecres 19 Agost 2009 16:24:53, Laura Santiago de la Cal va escriure:
&lt;br&gt;&amp;gt; No sé si me he explicado, espero que sí... a ver si
&lt;br&gt;&amp;gt; alguien me puede ayudar a eso, a desalojar un hilo de la cpu si ha excedido
&lt;br&gt;&amp;gt; un tiempo (sé que puedo poner wait(x) y luego matarlo, pero no quiero
&lt;br&gt;&amp;gt; bloquear la cpu)
&lt;br&gt;&lt;br&gt;¿Y usar sleep()?
&lt;br&gt;&lt;a href=&quot;http://doc.trolltech.com/4.5/qthread.html#sleep&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://doc.trolltech.com/4.5/qthread.html#sleep&lt;/a&gt;&lt;br&gt;&lt;br&gt;Creas un thread que es el 'controlador'.
&lt;br&gt;Antes de lanzar el Thread con código desconocido, estableces una variable 
&lt;br&gt;'finishedOk a 'false'
&lt;br&gt;Después de lanzarlo, en controlador ejecutas un: this.sleep(2000);
&lt;br&gt;&lt;br&gt;Programas que si el programa finaliza correctamente, pone 'finishedOk' a 'true' 
&lt;br&gt;y 'despierta' a 'controlador'.
&lt;br&gt;&lt;br&gt;En 'controlador', después de 'sleep' pones un código parecido a esto:
&lt;br&gt;if (!finishedOk) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; threadUnknownCode.terminate();	// matas el hilo con el código desconocido
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //codigo para restaurar &amp;quot;el sistema&amp;quot;
&lt;br&gt;}
&lt;br&gt;//siguiente jugador
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Guillem Barba
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25304423&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;guillem@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.guillem.alcarrer.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.guillem.alcarrer.net&lt;/a&gt;&lt;br&gt;L'Hospitalet de Llobregat - Catalunya
&lt;br&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25304423&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Matar-hilos-%28QThread%29-con-el-tiempo-tp23554367p25304423.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25304342</id>
	<title>Re: API de KDE4 para descargar y tutoriales please.</title>
	<published>2009-09-04T18:47:45Z</published>
	<updated>2009-09-04T18:47:45Z</updated>
	<author>
		<name>Guillem Barba-3</name>
	</author>
	<content type="html">Hola, más vale tarde que nunca :-P
&lt;br&gt;&lt;br&gt;A Dimarts 11 Agost 2009 19:01:49, Jaime Robles va escriure:
&lt;br&gt;&amp;gt; Además... ¿Conoceis algún tutorial de programación de KDE que esté bien
&lt;br&gt;&amp;gt; que cuenten cómo desarrollar la interfaz gráfica? Me gustaría aprender a
&lt;br&gt;&amp;gt; desarrollar la interfaz sin necesitar el qt-designer.
&lt;br&gt;&lt;br&gt;No es programación KDE, si no Qt (¿alguien conoce alguno para KDE 4?) pero 
&lt;br&gt;este debe* estar muy bien:
&lt;br&gt;C++ GUI Programming with Qt 4
&lt;br&gt;&lt;a href=&quot;http://www.amazon.com/Programming-Prentice-Source-Software-&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.amazon.com/Programming-Prentice-Source-Software-&lt;/a&gt;&lt;br&gt;Development/dp/0132354160
&lt;br&gt;&lt;br&gt;*: Digo 'debe' pues yo no tengo/he leído este, pero sí que tengo el mismo para 
&lt;br&gt;Qt3 y esta MUY bien. Bueno para gente bastante newbie, muy progresivo y 
&lt;br&gt;completo (no me llevo comisión, lástima :-P)
&lt;br&gt;&lt;br&gt;Saludos!
&lt;br&gt;-- 
&lt;br&gt;Guillem Barba
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25304342&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;guillem@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.guillem.alcarrer.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.guillem.alcarrer.net&lt;/a&gt;&lt;br&gt;L'Hospitalet de Llobregat - Catalunya
&lt;br&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25304342&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/API-de-KDE4-para-descargar-y-tutoriales-please.-tp24922302p25304342.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25280478</id>
	<title>Migrando KLog... ¿Alguna sugerencia?</title>
	<published>2009-09-03T10:17:53Z</published>
	<updated>2009-09-03T10:17:53Z</updated>
	<author>
		<name>Jaime Robles</name>
	</author>
	<content type="html">Buenas de nuevo,
&lt;br&gt;&lt;br&gt;Ya tengo compilando KLog... con MUCHOS &amp;quot;warnings&amp;quot; pero por lo menos
&lt;br&gt;compila con Qt4/KDE4 ':-)
&lt;br&gt;&lt;br&gt;Ahora estoy con el problema de que muere nada más arrancarlo y no se por
&lt;br&gt;dónde tirar.
&lt;br&gt;&lt;br&gt;Supongo que será un problema derivado de mi falta de conocimiento de
&lt;br&gt;programación... por lo que probablemente esté haciendo una barbaridad... y
&lt;br&gt;en eso confío para pedir por aquí algo de ayuda, que sea una barbaridad
&lt;br&gt;fácil de identificar por alguien con los mínimos conocimientos.
&lt;br&gt;&lt;br&gt;&lt;br&gt;¿Se anima alguien a compilar el código y ver el error que da? A ver si
&lt;br&gt;alguien me puede orientar en el buen camino... por favor.
&lt;br&gt;&lt;br&gt;El código es una &amp;quot;guarrada&amp;quot;... lo era antes de la migración pero lo que
&lt;br&gt;tengo ahora... bueno, me da hasta vergüenza publicarlo!! X'DDD
&lt;br&gt;&lt;br&gt;Está aquí:
&lt;br&gt;&lt;a href=&quot;http://jaime.robles.es/klog/download/unstable/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jaime.robles.es/klog/download/unstable/&lt;/a&gt;&lt;br&gt;&lt;br&gt;Muchas gracias...
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Un saludo,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Jaime Robles, EA4TV
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25280478&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jaime@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;Visita:
&lt;br&gt;&amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://jaime.robles.es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jaime.robles.es&lt;/a&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25280478&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Migrando-KLog...-%C2%BFAlguna-sugerencia--tp25280478p25280478.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25248525</id>
	<title>Ayuda con QwtPlot</title>
	<published>2009-09-01T15:29:10Z</published>
	<updated>2009-09-01T15:29:10Z</updated>
	<author>
		<name>Luis Duarte</name>
	</author>
	<content type="html">Buen Dia&lt;br&gt;&lt;br&gt;Si alguien me pudiera ayudar a Solucionar un problema que tengo&lt;br&gt;&lt;br&gt;pasar una gráfica hecha en QwtPlot e insertarla en QTextDocument&lt;br&gt;&lt;br&gt;Gracias&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25248525&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Ayuda-con-QwtPlot-tp25248525p25248525.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25245369</id>
	<title>Re: A QTreeView desde QListView</title>
	<published>2009-09-01T11:12:20Z</published>
	<updated>2009-09-01T11:12:20Z</updated>
	<author>
		<name>Aleix Pol-2</name>
	</author>
	<content type="html">&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: rgb(0, 0, 0); font-family: Arial; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; font-weight: bold; text-indent: -37px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;gmail_quote&quot;&gt;
2009/9/1 Jaime Robles &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25245369&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jaime@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Buenas,&lt;br&gt;
&lt;br&gt;
Me equivoqué, lo que estoy tratando de usar es el QTreeWidget, no el&lt;br&gt;
QTreeView O:-) aun así mis problemas son los mismos.&lt;br&gt;
&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
&amp;gt; Jaime, como te apuntó Aleix, el sistema view/model de Qt4 es muy flexible.&lt;br&gt;
&amp;gt; Pero si lo único que quieres es migrar la funcionalidad de QListView de&lt;br&gt;
&amp;gt; Qt3 a Qt4 sin tener que retocar mucho código, yo no usaría un QTreeView,&lt;br&gt;
&amp;gt; sino un QTreeWidget.&lt;br&gt;
&lt;/div&gt;Si... creo que ese es el bueno pero... ¿por qué dices que &amp;quot;si lo único que&lt;br&gt;
quiero es migrar la funcionalidad&amp;quot;? ¿Es mejor el QTreeView que el&lt;br&gt;
&lt;div class=&quot;im&quot;&gt;QTreeWidget?&lt;br&gt;
&lt;br&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;En teoría, QTreeView escala mejor, porque separas los datos (el modelo) de la vista.&lt;br&gt;En la practica supongo que QTreeView sólo es mejor si tienes pensado aprender a usar los modelos. En cualquier caso, QTreeView+QStandardModel te dan algo bastante parecido a QTreeWidget. Es lo que yo uso en estos casos.&lt;br&gt;
 &lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div class=&quot;im&quot;&gt;
&amp;gt; De este modo, dispones de las típicas señales itemClicked,&lt;br&gt;
&amp;gt; itemDoubleClicked,&lt;br&gt;
&amp;gt; etc. que trabajan con QTreeWidgetItem.&lt;br&gt;
&lt;/div&gt;Tendré que mirarme todo esto...&lt;br&gt;
&lt;div class=&quot;im&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;Para sacar un menu contextual, usa la señal customContextMenuRequested&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: rgb(0, 0, 0); font-family: Arial; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; font-weight: bold; text-indent: -37px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;, asi Qt se encarga de sacarlo cuando sea necesario (notese que no tiene porque ser el boton derecho el correcto, dependiendo de las preferencias del usuario). Si usas esto, recuerda modificar el contextMenuPolicy.&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div class=&quot;im&quot;&gt;
&amp;gt; Como estas señales no distinguen entre los distintos botones, para saber&lt;br&gt;
&amp;gt; cuál&lt;br&gt;
&amp;gt; se ha pulsado debes usar QApplication::mouseButtons() en el slot que&lt;br&gt;
&amp;gt; responda a las anteriores señales.&lt;br&gt;
&lt;/div&gt;Uff!&lt;br&gt;
Con lo FACIL que era antes... ahora a leer, leer, leer, ... X&amp;#39;DDD&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;No deberías necesitar usar QApplication::mouseButtons para nada. &lt;br&gt;&lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;

&lt;br&gt;
A los que sabeis... ¿Merece la pena la migración de Qt4?&lt;br&gt;
Tengo que migrar si quiero seguir manteniendo KLog pero... ¿Voy a ganar&lt;br&gt;
algo? No se yo...&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;Sí. Tienes que passarte a Qt4.&lt;br&gt; &lt;br&gt;&lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;br&gt;
Gracias (y a Aleix también, que estaba esperando a tener un momento para&lt;br&gt;
leer con detalle el mensaje y dar las gracias!)&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;:) &lt;br&gt;&lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
&lt;br&gt;
_______________________________________________&lt;br&gt;
Kde-devel-es mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25245369&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25245369&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/A-QTreeView-desde-QListView-tp25214217p25245369.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25245214</id>
	<title>Re: A QTreeView desde QListView</title>
	<published>2009-09-01T10:45:57Z</published>
	<updated>2009-09-01T10:45:57Z</updated>
	<author>
		<name>Eloy Cuadra</name>
	</author>
	<content type="html">Hola,
&lt;br&gt;&lt;br&gt;El martes, 1 de septiembre de 2009, Jaime Robles escribió:
&lt;br&gt;&amp;gt; Si... creo que ese es el bueno pero... ¿por qué dices que &amp;quot;si lo único que
&lt;br&gt;&amp;gt; quiero es migrar la funcionalidad&amp;quot;? ¿Es mejor el QTreeView que el
&lt;br&gt;&amp;gt; QTreeWidget?
&lt;br&gt;&lt;br&gt;No es que una sea mejor que otra: son dos aproximaciones distintas. En Qt4 se 
&lt;br&gt;prefiere el sistema model/view para representar datos en widgets. Esta es una 
&lt;br&gt;de las grandes diferencias con Qt3. En Qt4, QTreeView no permite trabajar con 
&lt;br&gt;elementos QTreeWidgetItem (como permitían las clases de Qt3). En lugar de 
&lt;br&gt;ello, ahora trabaja con elementos QModelIndex. QTreeWidget hereda de 
&lt;br&gt;QTreeView, pero permite trabajar con elementos QTreeWidgetItem en lugar de con 
&lt;br&gt;elementos QModelIndex. Por eso decía que si querías migrar lo que ya tenías 
&lt;br&gt;hecho para Qt3 sin romperte demasiado la cabeza... pues eso :-)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; A los que sabeis... ¿Merece la pena la migración de Qt4?
&lt;br&gt;&amp;gt; Tengo que migrar si quiero seguir manteniendo KLog pero... ¿Voy a ganar
&lt;br&gt;&amp;gt; algo? No se yo...
&lt;br&gt;&lt;br&gt;Bueno, no es que sepa demasiado sobre esto, pero si no migras la aplicación a 
&lt;br&gt;Qt4 vas a seguir necesitando las bibliotecas de Qt3/KDE3, que pronto van a 
&lt;br&gt;quedar obsoletas (si es que no lo están ya).
&lt;br&gt;&lt;br&gt;Un saludo,
&lt;br&gt;-- 
&lt;br&gt;Eloy Cuadra
&lt;br&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25245214&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/A-QTreeView-desde-QListView-tp25214217p25245214.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25244765</id>
	<title>Re: A QTreeView desde QListView</title>
	<published>2009-09-01T10:41:35Z</published>
	<updated>2009-09-01T10:41:35Z</updated>
	<author>
		<name>Sergio Cambra-4</name>
	</author>
	<content type="html">On Martes, 1 de Septiembre de 2009 16:24:30 Jaime Robles escribió:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Buenas,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Me equivoqué, lo que estoy tratando de usar es el QTreeWidget, no el
&lt;br&gt;&amp;gt; QTreeView O:-) aun así mis problemas son los mismos.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Jaime, como te apuntó Aleix, el sistema view/model de Qt4 es muy
&lt;br&gt;&amp;gt; &amp;gt; flexible. Pero si lo único que quieres es migrar la funcionalidad de
&lt;br&gt;&amp;gt; &amp;gt; QListView de Qt3 a Qt4 sin tener que retocar mucho código, yo no usaría
&lt;br&gt;&amp;gt; &amp;gt; un QTreeView, sino un QTreeWidget.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Si... creo que ese es el bueno pero... ¿por qué dices que &amp;quot;si lo único que
&lt;br&gt;&amp;gt; quiero es migrar la funcionalidad&amp;quot;? ¿Es mejor el QTreeView que el
&lt;br&gt;&amp;gt; QTreeWidget?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; De este modo, dispones de las típicas señales itemClicked,
&lt;br&gt;&amp;gt; &amp;gt; itemDoubleClicked,
&lt;br&gt;&amp;gt; &amp;gt; etc. que trabajan con QTreeWidgetItem.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Tendré que mirarme todo esto...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Como estas señales no distinguen entre los distintos botones, para saber
&lt;br&gt;&amp;gt; &amp;gt; cuál
&lt;br&gt;&amp;gt; &amp;gt; se ha pulsado debes usar QApplication::mouseButtons() en el slot que
&lt;br&gt;&amp;gt; &amp;gt; responda a las anteriores señales.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Uff!
&lt;br&gt;&amp;gt; Con lo FACIL que era antes... ahora a leer, leer, leer, ... X'DDD
&lt;/div&gt;&lt;br&gt;¿Has visto este hilo? En el cuarto mensaje dan una solucion: la señal 
&lt;br&gt;customContextMenuRequested
&lt;br&gt;&lt;a href=&quot;http://doc.trolltech.com/4.5/qwidget.html#customContextMenuRequested&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://doc.trolltech.com/4.5/qwidget.html#customContextMenuRequested&lt;/a&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; A los que sabeis... ¿Merece la pena la migración de Qt4?
&lt;br&gt;&amp;gt; Tengo que migrar si quiero seguir manteniendo KLog pero... ¿Voy a ganar
&lt;br&gt;&amp;gt; algo? No se yo...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Gracias (y a Aleix también, que estaba esperando a tener un momento para
&lt;br&gt;&amp;gt; leer con detalle el mensaje y dar las gracias!)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Kde-devel-es mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25244765&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;/div&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25244765&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/A-QTreeView-desde-QListView-tp25214217p25244765.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25244467</id>
	<title>Re: A QTreeView desde QListView</title>
	<published>2009-09-01T07:24:30Z</published>
	<updated>2009-09-01T07:24:30Z</updated>
	<author>
		<name>Jaime Robles</name>
	</author>
	<content type="html">Buenas,
&lt;br&gt;&lt;br&gt;Me equivoqué, lo que estoy tratando de usar es el QTreeWidget, no el
&lt;br&gt;QTreeView O:-) aun así mis problemas son los mismos.
&lt;br&gt;&lt;br&gt;&amp;gt; Jaime, como te apuntó Aleix, el sistema view/model de Qt4 es muy flexible.
&lt;br&gt;&amp;gt; Pero si lo único que quieres es migrar la funcionalidad de QListView de
&lt;br&gt;&amp;gt; Qt3 a Qt4 sin tener que retocar mucho código, yo no usaría un QTreeView,
&lt;br&gt;&amp;gt; sino un QTreeWidget.
&lt;br&gt;Si... creo que ese es el bueno pero... ¿por qué dices que &amp;quot;si lo único que
&lt;br&gt;quiero es migrar la funcionalidad&amp;quot;? ¿Es mejor el QTreeView que el
&lt;br&gt;QTreeWidget?
&lt;br&gt;&lt;br&gt;&amp;gt; De este modo, dispones de las típicas señales itemClicked,
&lt;br&gt;&amp;gt; itemDoubleClicked,
&lt;br&gt;&amp;gt; etc. que trabajan con QTreeWidgetItem.
&lt;br&gt;Tendré que mirarme todo esto...
&lt;br&gt;&lt;br&gt;&amp;gt; Como estas señales no distinguen entre los distintos botones, para saber
&lt;br&gt;&amp;gt; cuál
&lt;br&gt;&amp;gt; se ha pulsado debes usar QApplication::mouseButtons() en el slot que
&lt;br&gt;&amp;gt; responda a las anteriores señales.
&lt;br&gt;Uff!
&lt;br&gt;Con lo FACIL que era antes... ahora a leer, leer, leer, ... X'DDD
&lt;br&gt;&lt;br&gt;&lt;br&gt;A los que sabeis... ¿Merece la pena la migración de Qt4?
&lt;br&gt;Tengo que migrar si quiero seguir manteniendo KLog pero... ¿Voy a ganar
&lt;br&gt;algo? No se yo...
&lt;br&gt;&lt;br&gt;&lt;br&gt;Gracias (y a Aleix también, que estaba esperando a tener un momento para
&lt;br&gt;leer con detalle el mensaje y dar las gracias!)
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25244467&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/A-QTreeView-desde-QListView-tp25214217p25244467.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25239170</id>
	<title>Re: A QTreeView desde QListView</title>
	<published>2009-09-01T05:04:10Z</published>
	<updated>2009-09-01T05:04:10Z</updated>
	<author>
		<name>Eloy Cuadra</name>
	</author>
	<content type="html">Hola,
&lt;br&gt;&lt;br&gt;El martes, 1 de septiembre de 2009, Eloy Cuadra escribió:
&lt;br&gt;&amp;gt; Como estas señales no distinguen entre los distintos botones, para saber
&lt;br&gt;&amp;gt; cuál se ha pulsado debes usar QApplication::mouseButtons() en el slot que
&lt;br&gt;&amp;gt; responda a las anteriores señales.
&lt;br&gt;&lt;br&gt;Bueno, esto no es correcto, ya que QApplication::mouseButtons() siempre te 
&lt;br&gt;devolverá 0 si lo usas en los slots conectados a las señales itemClicked e 
&lt;br&gt;itemDoubleClicked.
&lt;br&gt;&lt;br&gt;Para solucionar este pequeño problema debes conectar además la señal 
&lt;br&gt;itemPressed a otro slot donde captures el estado de los botones del ratón con 
&lt;br&gt;QApplication::mouseButtons() y mantengas en caché el QTreeWidgetItem y la 
&lt;br&gt;columna. Posteriormente, en el slot donde respondas a itemClicked, comprueba 
&lt;br&gt;que el QTreeWidgetItem y la columna se corresponden con los valores que 
&lt;br&gt;mantenías en caché antes de usar el estado capturado de los botones del ratón.
&lt;br&gt;&lt;br&gt;También se pueden capturar y usar del mismo modo los modificadores del 
&lt;br&gt;teclado.
&lt;br&gt;&lt;br&gt;Esto funciona correctamente (lo uso en una aplicación). Aún así, sigo teniendo 
&lt;br&gt;problemas para distinguir entre itemClicked e itemDoubleClicked, ya que todo 
&lt;br&gt;doble clic implica un clic. ¿Alguna sugerencia?
&lt;br&gt;&lt;br&gt;Un saludo,
&lt;br&gt;-- 
&lt;br&gt;Eloy Cuadra
&lt;br&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25239170&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/A-QTreeView-desde-QListView-tp25214217p25239170.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25238000</id>
	<title>Re: A QTreeView desde QListView</title>
	<published>2009-09-01T03:30:33Z</published>
	<updated>2009-09-01T03:30:33Z</updated>
	<author>
		<name>Eloy Cuadra</name>
	</author>
	<content type="html">Hola,
&lt;br&gt;&lt;br&gt;Jaime, como te apuntó Aleix, el sistema view/model de Qt4 es muy flexible. 
&lt;br&gt;Pero si lo único que quieres es migrar la funcionalidad de QListView de Qt3 a 
&lt;br&gt;Qt4 sin tener que retocar mucho código, yo no usaría un QTreeView, sino un 
&lt;br&gt;QTreeWidget.
&lt;br&gt;&lt;br&gt;De este modo, dispones de las típicas señales itemClicked, itemDoubleClicked, 
&lt;br&gt;etc. que trabajan con QTreeWidgetItem.
&lt;br&gt;&lt;br&gt;Como estas señales no distinguen entre los distintos botones, para saber cuál 
&lt;br&gt;se ha pulsado debes usar QApplication::mouseButtons() en el slot que responda 
&lt;br&gt;a las anteriores señales.
&lt;br&gt;&lt;br&gt;Un saludo,
&lt;br&gt;&lt;br&gt;Eloy Cuadra
&lt;br&gt;&lt;br&gt;&lt;br&gt;El domingo, 30 de agosto de 2009, Aleix Pol escribió:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Para ontrolar la seleccion, tienes que usar el QSelectionModel que te
&lt;br&gt;&amp;gt; devuelve QAbstractItemModel::selectionModel().
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; si lo que quieres es interceptar el mouse, puedes usar
&lt;br&gt;&amp;gt; QWidget::mouseReleaseEvent
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Saludos!
&lt;br&gt;&amp;gt; Aleix
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 2009/8/27 Jaime Robles &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25238000&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jaime@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Buenas,
&lt;br&gt;&amp;gt; &amp;gt; Ando liado con la migración de QT3 a QT4 de KLog... Que no estoy
&lt;br&gt;&amp;gt; &amp;gt; perdiendo tiempo ni na... :-(
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; El caso es que me han quitado QListView para el uso que yo le daba y
&lt;br&gt;&amp;gt; &amp;gt; ahora creo que esa funcionalidad se da con QTreeView.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Mu pregunta... ¿Como se puede hacer para seleccionar un ítem con el
&lt;br&gt;&amp;gt; &amp;gt; botón derecho como se hacia en QListView y la señal
&lt;br&gt;&amp;gt; &amp;gt; rightbuttonclicked?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Estoy mirando y no veo nada...
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Muchas gracias...
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Jaime
&lt;br&gt;&amp;gt; &amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &amp;gt; Kde-devel-es mailing list
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25238000&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;/div&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25238000&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/A-QTreeView-desde-QListView-tp25214217p25238000.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25214264</id>
	<title>Re: A QTreeView desde QListView</title>
	<published>2009-08-30T11:26:52Z</published>
	<updated>2009-08-30T11:26:52Z</updated>
	<author>
		<name>Aleix Pol-2</name>
	</author>
	<content type="html">Para ontrolar la seleccion, tienes que usar el QSelectionModel que te devuelve QAbstractItemModel::selectionModel().&lt;br&gt;&lt;br&gt;si lo que quieres es interceptar el mouse, puedes usar QWidget::mouseReleaseEvent&lt;br&gt;&lt;br&gt;Saludos!&lt;br&gt;
Aleix&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/8/27 Jaime Robles &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25214264&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jaime@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Buenas,&lt;br&gt;
Ando liado con la migración de QT3 a QT4 de KLog... Que no estoy&lt;br&gt;
perdiendo tiempo ni na... :-(&lt;br&gt;
&lt;br&gt;
El caso es que me han quitado QListView para el uso que yo le daba y&lt;br&gt;
ahora creo que esa funcionalidad se da con QTreeView.&lt;br&gt;
&lt;br&gt;
Mu pregunta... ¿Como se puede hacer para seleccionar un ítem con el&lt;br&gt;
botón derecho como se hacia en QListView y la señal&lt;br&gt;
rightbuttonclicked?&lt;br&gt;
&lt;br&gt;
Estoy mirando y no veo nada...&lt;br&gt;
&lt;br&gt;
Muchas gracias...&lt;br&gt;
&lt;br&gt;
Jaime&lt;br&gt;
_______________________________________________&lt;br&gt;
Kde-devel-es mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25214264&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25214264&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/A-QTreeView-desde-QListView-tp25214217p25214264.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25214217</id>
	<title>A QTreeView desde QListView</title>
	<published>2009-08-27T09:58:19Z</published>
	<updated>2009-08-27T09:58:19Z</updated>
	<author>
		<name>Jaime Robles</name>
	</author>
	<content type="html">Buenas,
&lt;br&gt;Ando liado con la migración de QT3 a QT4 de KLog... Que no estoy &amp;nbsp;
&lt;br&gt;perdiendo tiempo ni na... :-(
&lt;br&gt;&lt;br&gt;El caso es que me han quitado QListView para el uso que yo le daba y &amp;nbsp;
&lt;br&gt;ahora creo que esa funcionalidad se da con QTreeView.
&lt;br&gt;&lt;br&gt;Mu pregunta... ¿Como se puede hacer para seleccionar un ítem con el &amp;nbsp;
&lt;br&gt;botón derecho como se hacia en QListView y la señal &amp;nbsp;
&lt;br&gt;rightbuttonclicked?
&lt;br&gt;&lt;br&gt;Estoy mirando y no veo nada...
&lt;br&gt;&lt;br&gt;Muchas gracias...
&lt;br&gt;&lt;br&gt;Jaime
&lt;br&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25214217&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/A-QTreeView-desde-QListView-tp25214217p25214217.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25052984</id>
	<title>Re: Matar hilos (QThread) pasado un tiempo sin hacer sleep</title>
	<published>2009-08-19T15:26:45Z</published>
	<updated>2009-08-19T15:26:45Z</updated>
	<author>
		<name>Bugzilla from ereslibre@kde.org</name>
	</author>
	<content type="html">Y... ¿está el código en un repositorio público para poder echarle un ojo?
&lt;br&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25052984&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Matar-hilos-%28QThread%29-con-el-tiempo-tp23554367p25052984.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25050866</id>
	<title>Re: Matar hilos (QThread) pasado un tiempo sin hacer sleep</title>
	<published>2009-08-19T12:52:00Z</published>
	<updated>2009-08-19T12:52:00Z</updated>
	<author>
		<name>Aleix Pol-2</name>
	</author>
	<content type="html">Quizá deberías poner el código completo...&lt;br&gt;QThread funciona, QTimer también y qDebug también... algo estarás haciendo mal.&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/8/19 Laura Santiago de la Cal &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050866&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalii24@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;



&lt;div&gt;
sí, he probado a poner this en vez de a y nada&lt;br&gt;&lt;br&gt;&lt;hr&gt;Date: Wed, 19 Aug 2009 18:08:31 +0200&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050866&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aleixpol@...&lt;/a&gt;&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050866&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kde-devel-es@...&lt;/a&gt;&lt;br&gt;
Subject: Re: [Kde-devel-es] Matar hilos (QThread) pasado un tiempo sin hacer	sleep&lt;br&gt;&lt;br&gt;Has probado con cambiar el padre de QTimer como te he dicho?&lt;br&gt;&lt;br&gt;&lt;div&gt;2009/8/19 Laura Santiago de la Cal &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050866&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalii24@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;

&lt;blockquote style=&quot;padding-left: 1ex;&quot;&gt;



&lt;div&gt;
sucede exactamente lo mismo (tambien he puesto qDebug (&amp;quot;funciona&amp;quot;) y nada, nunca llega a mostrarme funciona...&lt;br&gt;&lt;br&gt;&lt;hr&gt;Date: Wed, 19 Aug 2009 17:27:15 +0200&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050866&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aleixpol@...&lt;/a&gt;&lt;br&gt;

To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050866&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kde-devel-es@...&lt;/a&gt;&lt;br&gt;Subject: Re: [Kde-devel-es] Matar hilos (QThread) pasado un tiempo sin hacer	sleep&lt;br&gt;&lt;br&gt;usa qDebug(&amp;quot;hola&amp;quot;);&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div&gt;

2009/8/19 Laura Santiago de la Cal &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050866&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalii24@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote style=&quot;padding-left: 1ex;&quot;&gt;




&lt;div&gt;
Uy, lo siento, he copiado un ejemplo erroneo (he hecho ya tantas pruebas..) sería:&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;p style=&quot;padding: 0em ! important; text-indent: 0px;&quot;&gt;QTimer *timer = new QTimer(this);&lt;/p&gt;
&lt;div&gt;&lt;p style=&quot;padding: 0em ! important; text-indent: 0px;&quot;&gt;connect( timer, SIGNAL(timeout()), this, SLOT(quit()));&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;p style=&quot;padding: 0em ! important; text-indent: 0px;&quot;&gt;
timer-&amp;gt;start(200); //2000=2segundos&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Y más adelante:&lt;/div&gt;&lt;div&gt;public slots:&lt;br&gt;&lt;/div&gt;&lt;div&gt;void quit()&lt;br&gt;&lt;p style=&quot;padding: 0em ! important; text-indent: 0px;&quot;&gt;
{&lt;/p&gt;&lt;p style=&quot;padding: 0em ! important; text-indent: 0px;&quot;&gt;printf(&amp;quot;FUNCIONA\n&amp;quot;);&lt;/p&gt;&lt;p style=&quot;padding: 0em ! important; text-indent: 0px;&quot;&gt;a-&amp;gt;terminate();&lt;/p&gt;
&lt;p style=&quot;padding: 0em ! important; text-indent: 0px;&quot;&gt;}&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;Y en a tengo un:&lt;/div&gt;&lt;div&gt;while (1)&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;printf(&amp;quot;hola\n&amp;quot;);&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;
&lt;br&gt;&lt;/div&gt;&lt;div&gt;Y nada, Funciona nunca se muestra..&lt;br&gt;&lt;hr&gt;Date: Wed, 19 Aug 2009 17:07:27 +0200&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050866&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aleixpol@...&lt;/a&gt;&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050866&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kde-devel-es@...&lt;/a&gt;&lt;br&gt;


Subject: Re: [Kde-devel-es] Matar hilos (QThread) pasado un tiempo sin hacer	sleep&lt;br&gt;&lt;br&gt;Estás pasando &amp;#39;a&amp;#39; como padre del QTimer. El padre destruye (delete) todos los hijos cuando se detruye.&lt;br&gt;&lt;br&gt;&lt;div&gt;2009/8/19 Laura Santiago de la Cal &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050866&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalii24@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;



&lt;blockquote style=&quot;padding-left: 1ex;&quot;&gt;



&lt;div&gt;
no entiendo la pregunta&lt;br&gt;&lt;br&gt;&lt;hr&gt;Date: Wed, 19 Aug 2009 16:46:02 +0200&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050866&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aleixpol@...&lt;/a&gt;&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050866&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kde-devel-es@...&lt;/a&gt;&lt;br&gt;



Subject: Re: [Kde-devel-es] Matar hilos (QThread) pasado un tiempo sin hacer	sleep&lt;br&gt;&lt;br&gt;No se estará destruyendo &amp;#39;a&amp;#39;? si es el padre lo destruirá.&lt;br&gt;&lt;br&gt;&lt;div&gt;2009/8/19 Laura Santiago de la Cal &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050866&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalii24@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;




&lt;blockquote style=&quot;padding-left: 1ex;&quot;&gt;



&lt;div&gt;
Un Qtimer junto es lo que estoy intentando usar, pero no sé si es que no lo entiendo o leo mal la documentación, pero he intentado usarlo de mil formas diferentes y no me funciona.&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;De la forma siguiente consigo que ejecute y tal, pero no me hace nada. (Yo creo que debería imprimirme Funciona despues de 2 segundos)&lt;/div&gt;




&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;En un sitio tengo:&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br&gt;
&lt;p style=&quot;text-indent: 0px;&quot;&gt;QTimer *timer = new QTimer(a);&lt;/p&gt;
&lt;p style=&quot;text-indent: 0px;&quot;&gt;connect( timer, SIGNAL(timeout()), this, SLOT(quit()));&lt;/p&gt;
&lt;/div&gt;&lt;p style=&quot;text-indent: 0px;&quot;&gt;timer-&amp;gt;start(200); //2000=2segundos&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Y más adelante:&lt;/div&gt;&lt;div&gt;public slots:&lt;br&gt;&lt;/div&gt;&lt;div&gt;void quit()&lt;br&gt;
&lt;p style=&quot;text-indent: 0px;&quot;&gt;{&lt;/p&gt;
&lt;p style=&quot;text-indent: 0px;&quot;&gt;    printf(&amp;quot;FUNCIONA\n&amp;quot;);&lt;/p&gt;
&lt;p style=&quot;text-indent: 0px;&quot;&gt;    a-&amp;gt;terminate();&lt;/p&gt;
&lt;p style=&quot;text-indent: 0px;&quot;&gt;}&lt;/p&gt;&lt;div&gt;&lt;br&gt;&lt;hr&gt;Date: Wed, 19 Aug 2009 16:30:07 +0200&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050866&amp;i=13&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aleixpol@...&lt;/a&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050866&amp;i=14&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kde-devel-es@...&lt;/a&gt;&lt;br&gt;




Subject: Re: [Kde-devel-es] Matar hilos (QThread) pasado un tiempo sin hacer	sleep&lt;br&gt;&lt;br&gt;&lt;div&gt;2009/8/19 Laura Santiago de la Cal &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050866&amp;i=15&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalii24@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;




&lt;blockquote style=&quot;padding-left: 1ex;&quot;&gt;




&lt;div&gt;
Estos hilos se ejecutan en un entorno controlado, por tanto no pueden hacer nada fuera del sistema, estos hilos lo único que pueden hacer es modificar las variables del programa en el que se están ejecutando.&lt;div&gt;Además yo lo que digo no es que vaya a dejarlo en el estado anterior sino en el estado que yo deseo...&lt;/div&gt;





&lt;div&gt;Voy a explicar mi caso con más detenimiento a ver si así me explico mejor&lt;/div&gt;&lt;div&gt;Estoy creando un programa que se encargará de enfrentar a otros dos programas escritos por usuarios que no conozco, en este caso concreto cada usuario escribe un jugador de tennis y tiene que intentar ganar el partido, para moverse, golpear y tal les facilito una librería de funciones.&lt;/div&gt;





&lt;div&gt;El programa que yo controlo va cediendo el turno a cada uno de los otros 2 programas por turnos (estos se ejecutan en forma de hilo) y lo único que busco es que si uno de los 2 usuarios sin querer (o adrede) se mete en un bucle infinito desalojar ese hilo de la cpu y darlo como si no hubiera hecho nada (no quiere avanzar ni golpear ni nada) y preguntarle al otro que quiere hacer...&lt;/div&gt;





&lt;div&gt;No sé si me he explicado, espero que sí... a ver si alguien me puede ayudar a eso, a desalojar un hilo de la cpu si ha excedido un tiempo (sé que puedo poner wait(x) y luego matarlo, pero no quiero bloquear la cpu)&lt;/div&gt;





&lt;div&gt;A ver si hay suerte y alguien me puede ayudar...&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;Puedes usar QTimer::singleShot().&lt;br&gt;El tema es que si matas un thread puedes dejar el programa entero en un estado descontrolado.&lt;br&gt;





&lt;br&gt;Saludos,&lt;br&gt;Aleix&lt;br&gt; &lt;/div&gt;&lt;blockquote style=&quot;padding-left: 1ex;&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&amp;gt; Date: Wed, 19 Aug 2009 13:20:31 +0200&lt;br&gt;
&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050866&amp;i=16&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ereslibre@...&lt;/a&gt;&lt;div&gt;&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050866&amp;i=17&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kde-devel-es@...&lt;/a&gt;&lt;br&gt;&amp;gt; Subject: Re: [Kde-devel-es] Matar hilos (QThread) pasado un tiempo sin hacer	sleep&lt;br&gt;





&amp;gt; &lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&amp;gt; 2009/8/19 Laura Santiago de la Cal &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050866&amp;i=18&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalii24@...&lt;/a&gt;&amp;gt;:&lt;br&gt;&amp;gt; &amp;gt; La función terminate la tengo habilitada ya que si la pongo fuera del slot&lt;br&gt;





&amp;gt; &amp;gt; me termina el hilo perfectamente, asi que ese no puede ser el problema&lt;br&gt;&amp;gt; &amp;gt; Respecto a que matar hilos así derepente es mala práctica normalmente ya lo&lt;br&gt;&amp;gt; &amp;gt; sé, pero en este caso es lo que deseo hacer ya que una vez que yo los mate&lt;br&gt;





&amp;gt; &amp;gt; me preocuparé de dejar el sistema en el estado que yo deseo, asi que por eso&lt;br&gt;&amp;gt; &amp;gt; no hay problema.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; Creo que esto último es imposible. Si no sabes qué código ejecuta el&lt;br&gt;&amp;gt; jugador (según lo que has dicho en otro mensaje) es sencillamente&lt;br&gt;





&amp;gt; imposible que dejes el sistema en el mismo estado en el que se&lt;br&gt;&amp;gt; encontraba, básicamente porque no sabes qué hizo el código del&lt;br&gt;&amp;gt; jugador.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; Imagínate que por alguna razón desconocida, ha abierto un fichero y&lt;br&gt;





&amp;gt; está escribiendo sobre él en el momento en el que matas el hilo. Es&lt;br&gt;&amp;gt; imposible que puedas dejar el sistema en el mismo estado en el que se&lt;br&gt;&amp;gt; encontraba.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; Un saludo,&lt;br&gt;&amp;gt; Rafael Fernández López.&lt;br&gt;





&amp;gt; _______________________________________________&lt;br&gt;&amp;gt; Kde-devel-es mailing list&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050866&amp;i=19&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;





&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br&gt;&lt;hr&gt;¿Quieres los nuevos emoticonos en 3D?  &lt;a href=&quot;http://www.vivelive.com/emoticonos3d/index2.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;¡Descárgatelos gratis! &lt;/a&gt;&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
Kde-devel-es mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050866&amp;i=20&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;hr&gt;¿Quieres los nuevos emoticonos en 3D?  &lt;a href=&quot;http://www.vivelive.com/emoticonos3d/index2.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;¡Descárgatelos gratis! &lt;/a&gt;&lt;/div&gt;




&lt;/div&gt;&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
Kde-devel-es mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050866&amp;i=21&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;hr&gt;Hotmail en tu móvil allá donde vayas &lt;a href=&quot;http://serviciosmoviles.es.msn.com/hotmail/hotmail.aspx&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt; ¡Descúbrelo!&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
Kde-devel-es mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050866&amp;i=22&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;hr&gt;Messenger cumple 10 años  &lt;a href=&quot;http://www.vivelive.com/aniversariomessenger&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;¡Conéctate y celébralo con toda la comunidad!&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
Kde-devel-es mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050866&amp;i=23&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;hr&gt;¡Que no te pillen atascos ni  radares! En MSN te damos toda la información sobre el estado de las carretas y te mostramos  &lt;a href=&quot;http://motor.es.msn.com/servicios/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;dónde se encuentran los radares de tráfico.&lt;/a&gt;&lt;/div&gt;

&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
Kde-devel-es mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050866&amp;i=24&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;hr&gt;¿Quieres los nuevos emoticonos en 3D?  &lt;a href=&quot;http://www.vivelive.com/emoticonos3d/index2.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;¡Descárgatelos gratis! &lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
Kde-devel-es mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050866&amp;i=25&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050866&amp;i=26&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Matar-hilos-%28QThread%29-con-el-tiempo-tp23554367p25050866.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25050628</id>
	<title>Re: Matar hilos (QThread) pasado un tiempo sin hacer	sleep</title>
	<published>2009-08-19T12:15:41Z</published>
	<updated>2009-08-19T12:15:41Z</updated>
	<author>
		<name>Laura Santiago de la Cal</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;

&lt;/head&gt;
&lt;body class='hmmessage'&gt;
sí, he probado a poner this en vez de a y nada&lt;br&gt;&lt;br&gt;&lt;hr id=&quot;stopSpelling&quot;&gt;Date: Wed, 19 Aug 2009 18:08:31 +0200&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050628&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aleixpol@...&lt;/a&gt;&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050628&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kde-devel-es@...&lt;/a&gt;&lt;br&gt;Subject: Re: [Kde-devel-es] Matar hilos (QThread) pasado un tiempo sin hacer	sleep&lt;br&gt;&lt;br&gt;Has probado con cambiar el padre de QTimer como te he dicho?&lt;br&gt;&lt;br&gt;&lt;div class=&quot;EC_gmail_quote&quot;&gt;2009/8/19 Laura Santiago de la Cal &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050628&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalii24@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;blockquote class=&quot;EC_gmail_quote&quot; style=&quot;padding-left:1ex&quot;&gt;



&lt;div&gt;
sucede exactamente lo mismo (tambien he puesto qDebug (&quot;funciona&quot;) y nada, nunca llega a mostrarme funciona...&lt;br&gt;&lt;br&gt;&lt;hr&gt;Date: Wed, 19 Aug 2009 17:27:15 +0200&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050628&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aleixpol@...&lt;/a&gt;&lt;br&gt;
To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050628&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kde-devel-es@...&lt;/a&gt;&lt;br&gt;Subject: Re: [Kde-devel-es] Matar hilos (QThread) pasado un tiempo sin hacer	sleep&lt;br&gt;&lt;br&gt;usa qDebug(&quot;hola&quot;);&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div&gt;
2009/8/19 Laura Santiago de la Cal &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050628&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalii24@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote style=&quot;padding-left:1ex&quot;&gt;




&lt;div&gt;
Uy, lo siento, he copiado un ejemplo erroneo (he hecho ya tantas pruebas..) sería:&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;p style=&quot;padding:0em ! important;text-indent:0px&quot;&gt;QTimer *timer = new QTimer(this);&lt;/p&gt;
&lt;div&gt;&lt;p style=&quot;padding:0em ! important;text-indent:0px&quot;&gt;connect( timer, SIGNAL(timeout()), this, SLOT(quit()));&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;p style=&quot;padding:0em ! important;text-indent:0px&quot;&gt;
timer-&amp;gt;start(200); //2000=2segundos&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Y más adelante:&lt;/div&gt;&lt;div&gt;public slots:&lt;br&gt;&lt;/div&gt;&lt;div&gt;void quit()&lt;br&gt;&lt;p style=&quot;padding:0em ! important;text-indent:0px&quot;&gt;
{&lt;/p&gt;&lt;p style=&quot;padding:0em ! important;text-indent:0px&quot;&gt;printf(&quot;FUNCIONA\n&quot;);&lt;/p&gt;&lt;p style=&quot;padding:0em ! important;text-indent:0px&quot;&gt;a-&amp;gt;terminate();&lt;/p&gt;
&lt;p style=&quot;padding:0em ! important;text-indent:0px&quot;&gt;}&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;Y en a tengo un:&lt;/div&gt;&lt;div&gt;while (1)&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;printf(&quot;hola\n&quot;);&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;
&lt;br&gt;&lt;/div&gt;&lt;div&gt;Y nada, Funciona nunca se muestra..&lt;br&gt;&lt;hr&gt;Date: Wed, 19 Aug 2009 17:07:27 +0200&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050628&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aleixpol@...&lt;/a&gt;&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050628&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kde-devel-es@...&lt;/a&gt;&lt;br&gt;

Subject: Re: [Kde-devel-es] Matar hilos (QThread) pasado un tiempo sin hacer	sleep&lt;br&gt;&lt;br&gt;Estás pasando 'a' como padre del QTimer. El padre destruye (delete) todos los hijos cuando se detruye.&lt;br&gt;&lt;br&gt;&lt;div&gt;2009/8/19 Laura Santiago de la Cal &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050628&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalii24@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;


&lt;blockquote style=&quot;padding-left:1ex&quot;&gt;



&lt;div&gt;
no entiendo la pregunta&lt;br&gt;&lt;br&gt;&lt;hr&gt;Date: Wed, 19 Aug 2009 16:46:02 +0200&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050628&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aleixpol@...&lt;/a&gt;&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050628&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kde-devel-es@...&lt;/a&gt;&lt;br&gt;


Subject: Re: [Kde-devel-es] Matar hilos (QThread) pasado un tiempo sin hacer	sleep&lt;br&gt;&lt;br&gt;No se estará destruyendo 'a'? si es el padre lo destruirá.&lt;br&gt;&lt;br&gt;&lt;div&gt;2009/8/19 Laura Santiago de la Cal &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050628&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalii24@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;



&lt;blockquote style=&quot;padding-left:1ex&quot;&gt;



&lt;div&gt;
Un Qtimer junto es lo que estoy intentando usar, pero no sé si es que no lo entiendo o leo mal la documentación, pero he intentado usarlo de mil formas diferentes y no me funciona.&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;De la forma siguiente consigo que ejecute y tal, pero no me hace nada. (Yo creo que debería imprimirme Funciona despues de 2 segundos)&lt;/div&gt;



&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;En un sitio tengo:&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br&gt;
&lt;p style=&quot;text-indent:0px&quot;&gt;QTimer *timer = new QTimer(a);&lt;/p&gt;
&lt;p style=&quot;text-indent:0px&quot;&gt;connect( timer, SIGNAL(timeout()), this, SLOT(quit()));&lt;/p&gt;
&lt;/div&gt;&lt;p style=&quot;text-indent:0px&quot;&gt;timer-&amp;gt;start(200); //2000=2segundos&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Y más adelante:&lt;/div&gt;&lt;div&gt;public slots:&lt;br&gt;&lt;/div&gt;&lt;div&gt;void quit()&lt;br&gt;
&lt;p style=&quot;text-indent:0px&quot;&gt;{&lt;/p&gt;
&lt;p style=&quot;text-indent:0px&quot;&gt;    printf(&quot;FUNCIONA\n&quot;);&lt;/p&gt;
&lt;p style=&quot;text-indent:0px&quot;&gt;    a-&amp;gt;terminate();&lt;/p&gt;
&lt;p style=&quot;text-indent:0px&quot;&gt;}&lt;/p&gt;&lt;div&gt;&lt;br&gt;&lt;hr&gt;Date: Wed, 19 Aug 2009 16:30:07 +0200&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050628&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aleixpol@...&lt;/a&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050628&amp;i=13&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kde-devel-es@...&lt;/a&gt;&lt;br&gt;



Subject: Re: [Kde-devel-es] Matar hilos (QThread) pasado un tiempo sin hacer	sleep&lt;br&gt;&lt;br&gt;&lt;div&gt;2009/8/19 Laura Santiago de la Cal &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050628&amp;i=14&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalii24@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;



&lt;blockquote style=&quot;padding-left:1ex&quot;&gt;




&lt;div&gt;
Estos hilos se ejecutan en un entorno controlado, por tanto no pueden hacer nada fuera del sistema, estos hilos lo único que pueden hacer es modificar las variables del programa en el que se están ejecutando.&lt;div&gt;Además yo lo que digo no es que vaya a dejarlo en el estado anterior sino en el estado que yo deseo...&lt;/div&gt;




&lt;div&gt;Voy a explicar mi caso con más detenimiento a ver si así me explico mejor&lt;/div&gt;&lt;div&gt;Estoy creando un programa que se encargará de enfrentar a otros dos programas escritos por usuarios que no conozco, en este caso concreto cada usuario escribe un jugador de tennis y tiene que intentar ganar el partido, para moverse, golpear y tal les facilito una librería de funciones.&lt;/div&gt;




&lt;div&gt;El programa que yo controlo va cediendo el turno a cada uno de los otros 2 programas por turnos (estos se ejecutan en forma de hilo) y lo único que busco es que si uno de los 2 usuarios sin querer (o adrede) se mete en un bucle infinito desalojar ese hilo de la cpu y darlo como si no hubiera hecho nada (no quiere avanzar ni golpear ni nada) y preguntarle al otro que quiere hacer...&lt;/div&gt;




&lt;div&gt;No sé si me he explicado, espero que sí... a ver si alguien me puede ayudar a eso, a desalojar un hilo de la cpu si ha excedido un tiempo (sé que puedo poner wait(x) y luego matarlo, pero no quiero bloquear la cpu)&lt;/div&gt;




&lt;div&gt;A ver si hay suerte y alguien me puede ayudar...&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;Puedes usar QTimer::singleShot().&lt;br&gt;El tema es que si matas un thread puedes dejar el programa entero en un estado descontrolado.&lt;br&gt;




&lt;br&gt;Saludos,&lt;br&gt;Aleix&lt;br&gt;&amp;nbsp;&lt;/div&gt;&lt;blockquote style=&quot;padding-left:1ex&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&amp;gt; Date: Wed, 19 Aug 2009 13:20:31 +0200&lt;br&gt;
&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050628&amp;i=15&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ereslibre@...&lt;/a&gt;&lt;div&gt;&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050628&amp;i=16&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kde-devel-es@...&lt;/a&gt;&lt;br&gt;&amp;gt; Subject: Re: [Kde-devel-es] Matar hilos (QThread) pasado un tiempo sin hacer	sleep&lt;br&gt;




&amp;gt; &lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&amp;gt; 2009/8/19 Laura Santiago de la Cal &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050628&amp;i=17&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalii24@...&lt;/a&gt;&amp;gt;:&lt;br&gt;&amp;gt; &amp;gt; La función terminate la tengo habilitada ya que si la pongo fuera del slot&lt;br&gt;




&amp;gt; &amp;gt; me termina el hilo perfectamente, asi que ese no puede ser el problema&lt;br&gt;&amp;gt; &amp;gt; Respecto a que matar hilos así derepente es mala práctica normalmente ya lo&lt;br&gt;&amp;gt; &amp;gt; sé, pero en este caso es lo que deseo hacer ya que una vez que yo los mate&lt;br&gt;




&amp;gt; &amp;gt; me preocuparé de dejar el sistema en el estado que yo deseo, asi que por eso&lt;br&gt;&amp;gt; &amp;gt; no hay problema.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; Creo que esto último es imposible. Si no sabes qué código ejecuta el&lt;br&gt;&amp;gt; jugador (según lo que has dicho en otro mensaje) es sencillamente&lt;br&gt;




&amp;gt; imposible que dejes el sistema en el mismo estado en el que se&lt;br&gt;&amp;gt; encontraba, básicamente porque no sabes qué hizo el código del&lt;br&gt;&amp;gt; jugador.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; Imagínate que por alguna razón desconocida, ha abierto un fichero y&lt;br&gt;




&amp;gt; está escribiendo sobre él en el momento en el que matas el hilo. Es&lt;br&gt;&amp;gt; imposible que puedas dejar el sistema en el mismo estado en el que se&lt;br&gt;&amp;gt; encontraba.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; Un saludo,&lt;br&gt;&amp;gt; Rafael Fernández López.&lt;br&gt;




&amp;gt; _______________________________________________&lt;br&gt;&amp;gt; Kde-devel-es mailing list&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050628&amp;i=18&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;




&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br&gt;&lt;hr&gt;¿Quieres los nuevos emoticonos en 3D?  &lt;a href=&quot;http://www.vivelive.com/emoticonos3d/index2.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;¡Descárgatelos gratis! &lt;/a&gt;&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
Kde-devel-es mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050628&amp;i=19&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;hr&gt;¿Quieres los nuevos emoticonos en 3D?  &lt;a href=&quot;http://www.vivelive.com/emoticonos3d/index2.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;¡Descárgatelos gratis! &lt;/a&gt;&lt;/div&gt;



&lt;/div&gt;&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
Kde-devel-es mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050628&amp;i=20&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;hr&gt;Hotmail en tu móvil allá donde vayas &lt;a href=&quot;http://serviciosmoviles.es.msn.com/hotmail/hotmail.aspx&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt; ¡Descúbrelo!&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
Kde-devel-es mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050628&amp;i=21&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;hr&gt;Messenger cumple 10 años  &lt;a href=&quot;http://www.vivelive.com/aniversariomessenger&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;¡Conéctate y celébralo con toda la comunidad!&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
Kde-devel-es mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050628&amp;i=22&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;EC_im&quot;&gt;&lt;hr&gt;¡Que no te pillen atascos ni  radares! En MSN te damos toda la información sobre el estado de las carretas y te mostramos  &lt;a href=&quot;http://motor.es.msn.com/servicios/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dónde se encuentran los radares de tráfico.&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
Kde-devel-es mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050628&amp;i=23&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br /&gt;&lt;hr /&gt;¿Quieres los nuevos emoticonos en 3D?  &lt;a href='http://www.vivelive.com/emoticonos3d/index2.html' target='_new' rel=&quot;nofollow&quot;&gt;¡Descárgatelos gratis! &lt;/a&gt;&lt;/body&gt;
&lt;/html&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25050628&amp;i=24&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Matar-hilos-%28QThread%29-con-el-tiempo-tp23554367p25050628.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25047184</id>
	<title>Re: Matar hilos (QThread) pasado un tiempo sin hacer sleep</title>
	<published>2009-08-19T09:08:31Z</published>
	<updated>2009-08-19T09:08:31Z</updated>
	<author>
		<name>Aleix Pol-2</name>
	</author>
	<content type="html">Has probado con cambiar el padre de QTimer como te he dicho?&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/8/19 Laura Santiago de la Cal &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25047184&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalii24@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;



&lt;div&gt;
sucede exactamente lo mismo (tambien he puesto qDebug (&amp;quot;funciona&amp;quot;) y nada, nunca llega a mostrarme funciona...&lt;br&gt;&lt;br&gt;&lt;hr&gt;Date: Wed, 19 Aug 2009 17:27:15 +0200&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25047184&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aleixpol@...&lt;/a&gt;&lt;br&gt;
To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25047184&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kde-devel-es@...&lt;/a&gt;&lt;br&gt;Subject: Re: [Kde-devel-es] Matar hilos (QThread) pasado un tiempo sin hacer	sleep&lt;br&gt;&lt;br&gt;usa qDebug(&amp;quot;hola&amp;quot;);&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div&gt;
2009/8/19 Laura Santiago de la Cal &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25047184&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalii24@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote style=&quot;padding-left: 1ex;&quot;&gt;




&lt;div&gt;
Uy, lo siento, he copiado un ejemplo erroneo (he hecho ya tantas pruebas..) sería:&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;p style=&quot;padding: 0em ! important; text-indent: 0px;&quot;&gt;QTimer *timer = new QTimer(this);&lt;/p&gt;
&lt;div&gt;&lt;p style=&quot;padding: 0em ! important; text-indent: 0px;&quot;&gt;connect( timer, SIGNAL(timeout()), this, SLOT(quit()));&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;p style=&quot;padding: 0em ! important; text-indent: 0px;&quot;&gt;
timer-&amp;gt;start(200); //2000=2segundos&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Y más adelante:&lt;/div&gt;&lt;div&gt;public slots:&lt;br&gt;&lt;/div&gt;&lt;div&gt;void quit()&lt;br&gt;&lt;p style=&quot;padding: 0em ! important; text-indent: 0px;&quot;&gt;
{&lt;/p&gt;&lt;p style=&quot;padding: 0em ! important; text-indent: 0px;&quot;&gt;printf(&amp;quot;FUNCIONA\n&amp;quot;);&lt;/p&gt;&lt;p style=&quot;padding: 0em ! important; text-indent: 0px;&quot;&gt;a-&amp;gt;terminate();&lt;/p&gt;
&lt;p style=&quot;padding: 0em ! important; text-indent: 0px;&quot;&gt;}&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;Y en a tengo un:&lt;/div&gt;&lt;div&gt;while (1)&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;printf(&amp;quot;hola\n&amp;quot;);&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;
&lt;br&gt;&lt;/div&gt;&lt;div&gt;Y nada, Funciona nunca se muestra..&lt;br&gt;&lt;hr&gt;Date: Wed, 19 Aug 2009 17:07:27 +0200&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25047184&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aleixpol@...&lt;/a&gt;&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25047184&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kde-devel-es@...&lt;/a&gt;&lt;br&gt;

Subject: Re: [Kde-devel-es] Matar hilos (QThread) pasado un tiempo sin hacer	sleep&lt;br&gt;&lt;br&gt;Estás pasando &amp;#39;a&amp;#39; como padre del QTimer. El padre destruye (delete) todos los hijos cuando se detruye.&lt;br&gt;&lt;br&gt;&lt;div&gt;2009/8/19 Laura Santiago de la Cal &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25047184&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalii24@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;


&lt;blockquote style=&quot;padding-left: 1ex;&quot;&gt;



&lt;div&gt;
no entiendo la pregunta&lt;br&gt;&lt;br&gt;&lt;hr&gt;Date: Wed, 19 Aug 2009 16:46:02 +0200&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25047184&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aleixpol@...&lt;/a&gt;&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25047184&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kde-devel-es@...&lt;/a&gt;&lt;br&gt;


Subject: Re: [Kde-devel-es] Matar hilos (QThread) pasado un tiempo sin hacer	sleep&lt;br&gt;&lt;br&gt;No se estará destruyendo &amp;#39;a&amp;#39;? si es el padre lo destruirá.&lt;br&gt;&lt;br&gt;&lt;div&gt;2009/8/19 Laura Santiago de la Cal &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25047184&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalii24@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;



&lt;blockquote style=&quot;padding-left: 1ex;&quot;&gt;



&lt;div&gt;
Un Qtimer junto es lo que estoy intentando usar, pero no sé si es que no lo entiendo o leo mal la documentación, pero he intentado usarlo de mil formas diferentes y no me funciona.&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;De la forma siguiente consigo que ejecute y tal, pero no me hace nada. (Yo creo que debería imprimirme Funciona despues de 2 segundos)&lt;/div&gt;



&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;En un sitio tengo:&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br&gt;
&lt;p style=&quot;text-indent: 0px;&quot;&gt;QTimer *timer = new QTimer(a);&lt;/p&gt;
&lt;p style=&quot;text-indent: 0px;&quot;&gt;connect( timer, SIGNAL(timeout()), this, SLOT(quit()));&lt;/p&gt;
&lt;/div&gt;&lt;p style=&quot;text-indent: 0px;&quot;&gt;timer-&amp;gt;start(200); //2000=2segundos&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Y más adelante:&lt;/div&gt;&lt;div&gt;public slots:&lt;br&gt;&lt;/div&gt;&lt;div&gt;void quit()&lt;br&gt;
&lt;p style=&quot;text-indent: 0px;&quot;&gt;{&lt;/p&gt;
&lt;p style=&quot;text-indent: 0px;&quot;&gt;    printf(&amp;quot;FUNCIONA\n&amp;quot;);&lt;/p&gt;
&lt;p style=&quot;text-indent: 0px;&quot;&gt;    a-&amp;gt;terminate();&lt;/p&gt;
&lt;p style=&quot;text-indent: 0px;&quot;&gt;}&lt;/p&gt;&lt;div&gt;&lt;br&gt;&lt;hr&gt;Date: Wed, 19 Aug 2009 16:30:07 +0200&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25047184&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aleixpol@...&lt;/a&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25047184&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kde-devel-es@...&lt;/a&gt;&lt;br&gt;



Subject: Re: [Kde-devel-es] Matar hilos (QThread) pasado un tiempo sin hacer	sleep&lt;br&gt;&lt;br&gt;&lt;div&gt;2009/8/19 Laura Santiago de la Cal &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25047184&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalii24@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;



&lt;blockquote style=&quot;padding-left: 1ex;&quot;&gt;




&lt;div&gt;
Estos hilos se ejecutan en un entorno controlado, por tanto no pueden hacer nada fuera del sistema, estos hilos lo único que pueden hacer es modificar las variables del programa en el que se están ejecutando.&lt;div&gt;Además yo lo que digo no es que vaya a dejarlo en el estado anterior sino en el estado que yo deseo...&lt;/div&gt;




&lt;div&gt;Voy a explicar mi caso con más detenimiento a ver si así me explico mejor&lt;/div&gt;&lt;div&gt;Estoy creando un programa que se encargará de enfrentar a otros dos programas escritos por usuarios que no conozco, en este caso concreto cada usuario escribe un jugador de tennis y tiene que intentar ganar el partido, para moverse, golpear y tal les facilito una librería de funciones.&lt;/div&gt;




&lt;div&gt;El programa que yo controlo va cediendo el turno a cada uno de los otros 2 programas por turnos (estos se ejecutan en forma de hilo) y lo único que busco es que si uno de los 2 usuarios sin querer (o adrede) se mete en un bucle infinito desalojar ese hilo de la cpu y darlo como si no hubiera hecho nada (no quiere avanzar ni golpear ni nada) y preguntarle al otro que quiere hacer...&lt;/div&gt;




&lt;div&gt;No sé si me he explicado, espero que sí... a ver si alguien me puede ayudar a eso, a desalojar un hilo de la cpu si ha excedido un tiempo (sé que puedo poner wait(x) y luego matarlo, pero no quiero bloquear la cpu)&lt;/div&gt;




&lt;div&gt;A ver si hay suerte y alguien me puede ayudar...&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;Puedes usar QTimer::singleShot().&lt;br&gt;El tema es que si matas un thread puedes dejar el programa entero en un estado descontrolado.&lt;br&gt;




&lt;br&gt;Saludos,&lt;br&gt;Aleix&lt;br&gt; &lt;/div&gt;&lt;blockquote style=&quot;padding-left: 1ex;&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&amp;gt; Date: Wed, 19 Aug 2009 13:20:31 +0200&lt;br&gt;
&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25047184&amp;i=13&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ereslibre@...&lt;/a&gt;&lt;div&gt;&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25047184&amp;i=14&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kde-devel-es@...&lt;/a&gt;&lt;br&gt;&amp;gt; Subject: Re: [Kde-devel-es] Matar hilos (QThread) pasado un tiempo sin hacer	sleep&lt;br&gt;




&amp;gt; &lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&amp;gt; 2009/8/19 Laura Santiago de la Cal &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25047184&amp;i=15&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalii24@...&lt;/a&gt;&amp;gt;:&lt;br&gt;&amp;gt; &amp;gt; La función terminate la tengo habilitada ya que si la pongo fuera del slot&lt;br&gt;




&amp;gt; &amp;gt; me termina el hilo perfectamente, asi que ese no puede ser el problema&lt;br&gt;&amp;gt; &amp;gt; Respecto a que matar hilos así derepente es mala práctica normalmente ya lo&lt;br&gt;&amp;gt; &amp;gt; sé, pero en este caso es lo que deseo hacer ya que una vez que yo los mate&lt;br&gt;




&amp;gt; &amp;gt; me preocuparé de dejar el sistema en el estado que yo deseo, asi que por eso&lt;br&gt;&amp;gt; &amp;gt; no hay problema.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; Creo que esto último es imposible. Si no sabes qué código ejecuta el&lt;br&gt;&amp;gt; jugador (según lo que has dicho en otro mensaje) es sencillamente&lt;br&gt;




&amp;gt; imposible que dejes el sistema en el mismo estado en el que se&lt;br&gt;&amp;gt; encontraba, básicamente porque no sabes qué hizo el código del&lt;br&gt;&amp;gt; jugador.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; Imagínate que por alguna razón desconocida, ha abierto un fichero y&lt;br&gt;




&amp;gt; está escribiendo sobre él en el momento en el que matas el hilo. Es&lt;br&gt;&amp;gt; imposible que puedas dejar el sistema en el mismo estado en el que se&lt;br&gt;&amp;gt; encontraba.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; Un saludo,&lt;br&gt;&amp;gt; Rafael Fernández López.&lt;br&gt;




&amp;gt; _______________________________________________&lt;br&gt;&amp;gt; Kde-devel-es mailing list&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25047184&amp;i=16&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;




&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br&gt;&lt;hr&gt;¿Quieres los nuevos emoticonos en 3D?  &lt;a href=&quot;http://www.vivelive.com/emoticonos3d/index2.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;¡Descárgatelos gratis! &lt;/a&gt;&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
Kde-devel-es mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25047184&amp;i=17&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;hr&gt;¿Quieres los nuevos emoticonos en 3D?  &lt;a href=&quot;http://www.vivelive.com/emoticonos3d/index2.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;¡Descárgatelos gratis! &lt;/a&gt;&lt;/div&gt;



&lt;/div&gt;&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
Kde-devel-es mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25047184&amp;i=18&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;hr&gt;Hotmail en tu móvil allá donde vayas &lt;a href=&quot;http://serviciosmoviles.es.msn.com/hotmail/hotmail.aspx&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt; ¡Descúbrelo!&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
Kde-devel-es mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25047184&amp;i=19&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;hr&gt;Messenger cumple 10 años  &lt;a href=&quot;http://www.vivelive.com/aniversariomessenger&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;¡Conéctate y celébralo con toda la comunidad!&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
Kde-devel-es mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25047184&amp;i=20&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;im&quot;&gt;&lt;hr&gt;¡Que no te pillen atascos ni  radares! En MSN te damos toda la información sobre el estado de las carretas y te mostramos  &lt;a href=&quot;http://motor.es.msn.com/servicios/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;dónde se encuentran los radares de tráfico.&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
Kde-devel-es mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25047184&amp;i=21&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25047184&amp;i=22&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Matar-hilos-%28QThread%29-con-el-tiempo-tp23554367p25047184.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25046694</id>
	<title>Re: Matar hilos (QThread) pasado un tiempo sin hacer	sleep</title>
	<published>2009-08-19T08:40:56Z</published>
	<updated>2009-08-19T08:40:56Z</updated>
	<author>
		<name>Laura Santiago de la Cal</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;

&lt;/head&gt;
&lt;body class='hmmessage'&gt;
sucede exactamente lo mismo (tambien he puesto qDebug (&quot;funciona&quot;) y nada, nunca llega a mostrarme funciona...&lt;br&gt;&lt;br&gt;&lt;hr id=&quot;stopSpelling&quot;&gt;Date: Wed, 19 Aug 2009 17:27:15 +0200&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046694&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aleixpol@...&lt;/a&gt;&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046694&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kde-devel-es@...&lt;/a&gt;&lt;br&gt;Subject: Re: [Kde-devel-es] Matar hilos (QThread) pasado un tiempo sin hacer	sleep&lt;br&gt;&lt;br&gt;usa qDebug(&quot;hola&quot;);&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;EC_gmail_quote&quot;&gt;2009/8/19 Laura Santiago de la Cal &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046694&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalii24@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote class=&quot;EC_gmail_quote&quot; style=&quot;padding-left:1ex&quot;&gt;




&lt;div&gt;
Uy, lo siento, he copiado un ejemplo erroneo (he hecho ya tantas pruebas..) sería:&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;p style=&quot;padding:0em ! important;text-indent:0px&quot;&gt;QTimer *timer = new QTimer(this);&lt;/p&gt;
&lt;div class=&quot;EC_im&quot;&gt;&lt;p style=&quot;padding:0em ! important;text-indent:0px&quot;&gt;connect( timer, SIGNAL(timeout()), this, SLOT(quit()));&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;EC_im&quot;&gt;&lt;p style=&quot;padding:0em ! important;text-indent:0px&quot;&gt;
timer-&amp;gt;start(200); //2000=2segundos&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;EC_im&quot;&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Y más adelante:&lt;/div&gt;&lt;div&gt;public slots:&lt;br&gt;&lt;/div&gt;&lt;div&gt;void quit()&lt;br&gt;&lt;p style=&quot;padding:0em ! important;text-indent:0px&quot;&gt;
{&lt;/p&gt;&lt;p style=&quot;padding:0em ! important;text-indent:0px&quot;&gt;printf(&quot;FUNCIONA\n&quot;);&lt;/p&gt;&lt;p style=&quot;padding:0em ! important;text-indent:0px&quot;&gt;a-&amp;gt;terminate();&lt;/p&gt;
&lt;p style=&quot;padding:0em ! important;text-indent:0px&quot;&gt;}&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;Y en a tengo un:&lt;/div&gt;&lt;div&gt;while (1)&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;printf(&quot;hola\n&quot;);&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;
&lt;br&gt;&lt;/div&gt;&lt;div&gt;Y nada, Funciona nunca se muestra..&lt;br&gt;&lt;hr&gt;Date: Wed, 19 Aug 2009 17:07:27 +0200&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046694&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aleixpol@...&lt;/a&gt;&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046694&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kde-devel-es@...&lt;/a&gt;&lt;br&gt;
Subject: Re: [Kde-devel-es] Matar hilos (QThread) pasado un tiempo sin hacer	sleep&lt;br&gt;&lt;br&gt;Estás pasando 'a' como padre del QTimer. El padre destruye (delete) todos los hijos cuando se detruye.&lt;br&gt;&lt;br&gt;&lt;div&gt;2009/8/19 Laura Santiago de la Cal &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046694&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalii24@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;

&lt;blockquote style=&quot;padding-left:1ex&quot;&gt;



&lt;div&gt;
no entiendo la pregunta&lt;br&gt;&lt;br&gt;&lt;hr&gt;Date: Wed, 19 Aug 2009 16:46:02 +0200&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046694&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aleixpol@...&lt;/a&gt;&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046694&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kde-devel-es@...&lt;/a&gt;&lt;br&gt;

Subject: Re: [Kde-devel-es] Matar hilos (QThread) pasado un tiempo sin hacer	sleep&lt;br&gt;&lt;br&gt;No se estará destruyendo 'a'? si es el padre lo destruirá.&lt;br&gt;&lt;br&gt;&lt;div&gt;2009/8/19 Laura Santiago de la Cal &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046694&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalii24@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;


&lt;blockquote style=&quot;padding-left:1ex&quot;&gt;



&lt;div&gt;
Un Qtimer junto es lo que estoy intentando usar, pero no sé si es que no lo entiendo o leo mal la documentación, pero he intentado usarlo de mil formas diferentes y no me funciona.&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;De la forma siguiente consigo que ejecute y tal, pero no me hace nada. (Yo creo que debería imprimirme Funciona despues de 2 segundos)&lt;/div&gt;


&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;En un sitio tengo:&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br&gt;
&lt;p style=&quot;text-indent:0px&quot;&gt;QTimer *timer = new QTimer(a);&lt;/p&gt;
&lt;p style=&quot;text-indent:0px&quot;&gt;connect( timer, SIGNAL(timeout()), this, SLOT(quit()));&lt;/p&gt;
&lt;/div&gt;&lt;p style=&quot;text-indent:0px&quot;&gt;timer-&amp;gt;start(200); //2000=2segundos&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Y más adelante:&lt;/div&gt;&lt;div&gt;public slots:&lt;br&gt;&lt;/div&gt;&lt;div&gt;void quit()&lt;br&gt;
&lt;p style=&quot;text-indent:0px&quot;&gt;{&lt;/p&gt;
&lt;p style=&quot;text-indent:0px&quot;&gt;    printf(&quot;FUNCIONA\n&quot;);&lt;/p&gt;
&lt;p style=&quot;text-indent:0px&quot;&gt;    a-&amp;gt;terminate();&lt;/p&gt;
&lt;p style=&quot;text-indent:0px&quot;&gt;}&lt;/p&gt;&lt;div&gt;&lt;br&gt;&lt;hr&gt;Date: Wed, 19 Aug 2009 16:30:07 +0200&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046694&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aleixpol@...&lt;/a&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046694&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kde-devel-es@...&lt;/a&gt;&lt;br&gt;


Subject: Re: [Kde-devel-es] Matar hilos (QThread) pasado un tiempo sin hacer	sleep&lt;br&gt;&lt;br&gt;&lt;div&gt;2009/8/19 Laura Santiago de la Cal &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046694&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalii24@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;


&lt;blockquote style=&quot;padding-left:1ex&quot;&gt;




&lt;div&gt;
Estos hilos se ejecutan en un entorno controlado, por tanto no pueden hacer nada fuera del sistema, estos hilos lo único que pueden hacer es modificar las variables del programa en el que se están ejecutando.&lt;div&gt;Además yo lo que digo no es que vaya a dejarlo en el estado anterior sino en el estado que yo deseo...&lt;/div&gt;



&lt;div&gt;Voy a explicar mi caso con más detenimiento a ver si así me explico mejor&lt;/div&gt;&lt;div&gt;Estoy creando un programa que se encargará de enfrentar a otros dos programas escritos por usuarios que no conozco, en este caso concreto cada usuario escribe un jugador de tennis y tiene que intentar ganar el partido, para moverse, golpear y tal les facilito una librería de funciones.&lt;/div&gt;



&lt;div&gt;El programa que yo controlo va cediendo el turno a cada uno de los otros 2 programas por turnos (estos se ejecutan en forma de hilo) y lo único que busco es que si uno de los 2 usuarios sin querer (o adrede) se mete en un bucle infinito desalojar ese hilo de la cpu y darlo como si no hubiera hecho nada (no quiere avanzar ni golpear ni nada) y preguntarle al otro que quiere hacer...&lt;/div&gt;



&lt;div&gt;No sé si me he explicado, espero que sí... a ver si alguien me puede ayudar a eso, a desalojar un hilo de la cpu si ha excedido un tiempo (sé que puedo poner wait(x) y luego matarlo, pero no quiero bloquear la cpu)&lt;/div&gt;



&lt;div&gt;A ver si hay suerte y alguien me puede ayudar...&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;Puedes usar QTimer::singleShot().&lt;br&gt;El tema es que si matas un thread puedes dejar el programa entero en un estado descontrolado.&lt;br&gt;



&lt;br&gt;Saludos,&lt;br&gt;Aleix&lt;br&gt;&amp;nbsp;&lt;/div&gt;&lt;blockquote style=&quot;padding-left:1ex&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&amp;gt; Date: Wed, 19 Aug 2009 13:20:31 +0200&lt;br&gt;
&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046694&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ereslibre@...&lt;/a&gt;&lt;div&gt;&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046694&amp;i=13&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kde-devel-es@...&lt;/a&gt;&lt;br&gt;&amp;gt; Subject: Re: [Kde-devel-es] Matar hilos (QThread) pasado un tiempo sin hacer	sleep&lt;br&gt;



&amp;gt; &lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&amp;gt; 2009/8/19 Laura Santiago de la Cal &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046694&amp;i=14&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalii24@...&lt;/a&gt;&amp;gt;:&lt;br&gt;&amp;gt; &amp;gt; La función terminate la tengo habilitada ya que si la pongo fuera del slot&lt;br&gt;



&amp;gt; &amp;gt; me termina el hilo perfectamente, asi que ese no puede ser el problema&lt;br&gt;&amp;gt; &amp;gt; Respecto a que matar hilos así derepente es mala práctica normalmente ya lo&lt;br&gt;&amp;gt; &amp;gt; sé, pero en este caso es lo que deseo hacer ya que una vez que yo los mate&lt;br&gt;



&amp;gt; &amp;gt; me preocuparé de dejar el sistema en el estado que yo deseo, asi que por eso&lt;br&gt;&amp;gt; &amp;gt; no hay problema.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; Creo que esto último es imposible. Si no sabes qué código ejecuta el&lt;br&gt;&amp;gt; jugador (según lo que has dicho en otro mensaje) es sencillamente&lt;br&gt;



&amp;gt; imposible que dejes el sistema en el mismo estado en el que se&lt;br&gt;&amp;gt; encontraba, básicamente porque no sabes qué hizo el código del&lt;br&gt;&amp;gt; jugador.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; Imagínate que por alguna razón desconocida, ha abierto un fichero y&lt;br&gt;



&amp;gt; está escribiendo sobre él en el momento en el que matas el hilo. Es&lt;br&gt;&amp;gt; imposible que puedas dejar el sistema en el mismo estado en el que se&lt;br&gt;&amp;gt; encontraba.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; Un saludo,&lt;br&gt;&amp;gt; Rafael Fernández López.&lt;br&gt;



&amp;gt; _______________________________________________&lt;br&gt;&amp;gt; Kde-devel-es mailing list&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046694&amp;i=15&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;



&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br&gt;&lt;hr&gt;¿Quieres los nuevos emoticonos en 3D?  &lt;a href=&quot;http://www.vivelive.com/emoticonos3d/index2.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;¡Descárgatelos gratis! &lt;/a&gt;&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
Kde-devel-es mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046694&amp;i=16&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;hr&gt;¿Quieres los nuevos emoticonos en 3D?  &lt;a href=&quot;http://www.vivelive.com/emoticonos3d/index2.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;¡Descárgatelos gratis! &lt;/a&gt;&lt;/div&gt;


&lt;/div&gt;&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
Kde-devel-es mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046694&amp;i=17&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;hr&gt;Hotmail en tu móvil allá donde vayas &lt;a href=&quot;http://serviciosmoviles.es.msn.com/hotmail/hotmail.aspx&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt; ¡Descúbrelo!&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
Kde-devel-es mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046694&amp;i=18&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;EC_im&quot;&gt;&lt;br&gt;&lt;hr&gt;Messenger cumple 10 años  &lt;a href=&quot;http://www.vivelive.com/aniversariomessenger&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;¡Conéctate y celébralo con toda la comunidad!&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
Kde-devel-es mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046694&amp;i=19&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br /&gt;&lt;hr /&gt;¡Que no te pillen atascos ni  radares! En MSN te damos toda la información sobre el estado de las carretas y te mostramos  &lt;a href='http://motor.es.msn.com/servicios/' target='_new' rel=&quot;nofollow&quot;&gt;dónde se encuentran los radares de tráfico.&lt;/a&gt;&lt;/body&gt;
&lt;/html&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046694&amp;i=20&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Matar-hilos-%28QThread%29-con-el-tiempo-tp23554367p25046694.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25046406</id>
	<title>Re: Matar hilos (QThread) pasado un tiempo sin hacer sleep</title>
	<published>2009-08-19T08:27:15Z</published>
	<updated>2009-08-19T08:27:15Z</updated>
	<author>
		<name>Aleix Pol-2</name>
	</author>
	<content type="html">usa qDebug(&amp;quot;hola&amp;quot;);&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/8/19 Laura Santiago de la Cal &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046406&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalii24@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;




&lt;div&gt;
Uy, lo siento, he copiado un ejemplo erroneo (he hecho ya tantas pruebas..) sería:&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;p style=&quot;margin: 0em ! important; padding: 0em ! important; text-indent: 0px;&quot;&gt;QTimer *timer = new QTimer(this);&lt;/p&gt;
&lt;div class=&quot;im&quot;&gt;&lt;p style=&quot;margin: 0em ! important; padding: 0em ! important; text-indent: 0px;&quot;&gt;connect( timer, SIGNAL(timeout()), this, SLOT(quit()));&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;im&quot;&gt;&lt;p style=&quot;margin: 0em ! important; padding: 0em ! important; text-indent: 0px;&quot;&gt;
timer-&amp;gt;start(200); //2000=2segundos&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;im&quot;&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Y más adelante:&lt;/div&gt;&lt;div&gt;public slots:&lt;br&gt;&lt;/div&gt;&lt;div&gt;void quit()&lt;br&gt;&lt;p style=&quot;margin: 0em ! important; padding: 0em ! important; text-indent: 0px;&quot;&gt;
{&lt;/p&gt;&lt;p style=&quot;margin: 0em ! important; padding: 0em ! important; text-indent: 0px;&quot;&gt;printf(&amp;quot;FUNCIONA\n&amp;quot;);&lt;/p&gt;&lt;p style=&quot;margin: 0em ! important; padding: 0em ! important; text-indent: 0px;&quot;&gt;a-&amp;gt;terminate();&lt;/p&gt;
&lt;p style=&quot;margin: 0em ! important; padding: 0em ! important; text-indent: 0px;&quot;&gt;}&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;Y en a tengo un:&lt;/div&gt;&lt;div&gt;while (1)&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;printf(&amp;quot;hola\n&amp;quot;);&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;
&lt;br&gt;&lt;/div&gt;&lt;div&gt;Y nada, Funciona nunca se muestra..&lt;br&gt;&lt;hr&gt;Date: Wed, 19 Aug 2009 17:07:27 +0200&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046406&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aleixpol@...&lt;/a&gt;&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046406&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kde-devel-es@...&lt;/a&gt;&lt;br&gt;
Subject: Re: [Kde-devel-es] Matar hilos (QThread) pasado un tiempo sin hacer	sleep&lt;br&gt;&lt;br&gt;Estás pasando &amp;#39;a&amp;#39; como padre del QTimer. El padre destruye (delete) todos los hijos cuando se detruye.&lt;br&gt;&lt;br&gt;&lt;div&gt;2009/8/19 Laura Santiago de la Cal &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046406&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalii24@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;

&lt;blockquote style=&quot;padding-left: 1ex;&quot;&gt;



&lt;div&gt;
no entiendo la pregunta&lt;br&gt;&lt;br&gt;&lt;hr&gt;Date: Wed, 19 Aug 2009 16:46:02 +0200&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046406&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aleixpol@...&lt;/a&gt;&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046406&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kde-devel-es@...&lt;/a&gt;&lt;br&gt;

Subject: Re: [Kde-devel-es] Matar hilos (QThread) pasado un tiempo sin hacer	sleep&lt;br&gt;&lt;br&gt;No se estará destruyendo &amp;#39;a&amp;#39;? si es el padre lo destruirá.&lt;br&gt;&lt;br&gt;&lt;div&gt;2009/8/19 Laura Santiago de la Cal &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046406&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalii24@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;


&lt;blockquote style=&quot;padding-left: 1ex;&quot;&gt;



&lt;div&gt;
Un Qtimer junto es lo que estoy intentando usar, pero no sé si es que no lo entiendo o leo mal la documentación, pero he intentado usarlo de mil formas diferentes y no me funciona.&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;De la forma siguiente consigo que ejecute y tal, pero no me hace nada. (Yo creo que debería imprimirme Funciona despues de 2 segundos)&lt;/div&gt;


&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;En un sitio tengo:&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br&gt;
&lt;p style=&quot;text-indent: 0px;&quot;&gt;QTimer *timer = new QTimer(a);&lt;/p&gt;
&lt;p style=&quot;text-indent: 0px;&quot;&gt;connect( timer, SIGNAL(timeout()), this, SLOT(quit()));&lt;/p&gt;
&lt;/div&gt;&lt;p style=&quot;text-indent: 0px;&quot;&gt;timer-&amp;gt;start(200); //2000=2segundos&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Y más adelante:&lt;/div&gt;&lt;div&gt;public slots:&lt;br&gt;&lt;/div&gt;&lt;div&gt;void quit()&lt;br&gt;
&lt;p style=&quot;text-indent: 0px;&quot;&gt;{&lt;/p&gt;
&lt;p style=&quot;text-indent: 0px;&quot;&gt;    printf(&amp;quot;FUNCIONA\n&amp;quot;);&lt;/p&gt;
&lt;p style=&quot;text-indent: 0px;&quot;&gt;    a-&amp;gt;terminate();&lt;/p&gt;
&lt;p style=&quot;text-indent: 0px;&quot;&gt;}&lt;/p&gt;&lt;div&gt;&lt;br&gt;&lt;hr&gt;Date: Wed, 19 Aug 2009 16:30:07 +0200&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046406&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aleixpol@...&lt;/a&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046406&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kde-devel-es@...&lt;/a&gt;&lt;br&gt;


Subject: Re: [Kde-devel-es] Matar hilos (QThread) pasado un tiempo sin hacer	sleep&lt;br&gt;&lt;br&gt;&lt;div&gt;2009/8/19 Laura Santiago de la Cal &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046406&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalii24@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;


&lt;blockquote style=&quot;padding-left: 1ex;&quot;&gt;




&lt;div&gt;
Estos hilos se ejecutan en un entorno controlado, por tanto no pueden hacer nada fuera del sistema, estos hilos lo único que pueden hacer es modificar las variables del programa en el que se están ejecutando.&lt;div&gt;Además yo lo que digo no es que vaya a dejarlo en el estado anterior sino en el estado que yo deseo...&lt;/div&gt;



&lt;div&gt;Voy a explicar mi caso con más detenimiento a ver si así me explico mejor&lt;/div&gt;&lt;div&gt;Estoy creando un programa que se encargará de enfrentar a otros dos programas escritos por usuarios que no conozco, en este caso concreto cada usuario escribe un jugador de tennis y tiene que intentar ganar el partido, para moverse, golpear y tal les facilito una librería de funciones.&lt;/div&gt;



&lt;div&gt;El programa que yo controlo va cediendo el turno a cada uno de los otros 2 programas por turnos (estos se ejecutan en forma de hilo) y lo único que busco es que si uno de los 2 usuarios sin querer (o adrede) se mete en un bucle infinito desalojar ese hilo de la cpu y darlo como si no hubiera hecho nada (no quiere avanzar ni golpear ni nada) y preguntarle al otro que quiere hacer...&lt;/div&gt;



&lt;div&gt;No sé si me he explicado, espero que sí... a ver si alguien me puede ayudar a eso, a desalojar un hilo de la cpu si ha excedido un tiempo (sé que puedo poner wait(x) y luego matarlo, pero no quiero bloquear la cpu)&lt;/div&gt;



&lt;div&gt;A ver si hay suerte y alguien me puede ayudar...&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;Puedes usar QTimer::singleShot().&lt;br&gt;El tema es que si matas un thread puedes dejar el programa entero en un estado descontrolado.&lt;br&gt;



&lt;br&gt;Saludos,&lt;br&gt;Aleix&lt;br&gt; &lt;/div&gt;&lt;blockquote style=&quot;padding-left: 1ex;&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&amp;gt; Date: Wed, 19 Aug 2009 13:20:31 +0200&lt;br&gt;
&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046406&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ereslibre@...&lt;/a&gt;&lt;div&gt;&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046406&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kde-devel-es@...&lt;/a&gt;&lt;br&gt;&amp;gt; Subject: Re: [Kde-devel-es] Matar hilos (QThread) pasado un tiempo sin hacer	sleep&lt;br&gt;



&amp;gt; &lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&amp;gt; 2009/8/19 Laura Santiago de la Cal &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046406&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalii24@...&lt;/a&gt;&amp;gt;:&lt;br&gt;&amp;gt; &amp;gt; La función terminate la tengo habilitada ya que si la pongo fuera del slot&lt;br&gt;



&amp;gt; &amp;gt; me termina el hilo perfectamente, asi que ese no puede ser el problema&lt;br&gt;&amp;gt; &amp;gt; Respecto a que matar hilos así derepente es mala práctica normalmente ya lo&lt;br&gt;&amp;gt; &amp;gt; sé, pero en este caso es lo que deseo hacer ya que una vez que yo los mate&lt;br&gt;



&amp;gt; &amp;gt; me preocuparé de dejar el sistema en el estado que yo deseo, asi que por eso&lt;br&gt;&amp;gt; &amp;gt; no hay problema.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; Creo que esto último es imposible. Si no sabes qué código ejecuta el&lt;br&gt;&amp;gt; jugador (según lo que has dicho en otro mensaje) es sencillamente&lt;br&gt;



&amp;gt; imposible que dejes el sistema en el mismo estado en el que se&lt;br&gt;&amp;gt; encontraba, básicamente porque no sabes qué hizo el código del&lt;br&gt;&amp;gt; jugador.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; Imagínate que por alguna razón desconocida, ha abierto un fichero y&lt;br&gt;



&amp;gt; está escribiendo sobre él en el momento en el que matas el hilo. Es&lt;br&gt;&amp;gt; imposible que puedas dejar el sistema en el mismo estado en el que se&lt;br&gt;&amp;gt; encontraba.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; Un saludo,&lt;br&gt;&amp;gt; Rafael Fernández López.&lt;br&gt;



&amp;gt; _______________________________________________&lt;br&gt;&amp;gt; Kde-devel-es mailing list&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046406&amp;i=13&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;



&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br&gt;&lt;hr&gt;¿Quieres los nuevos emoticonos en 3D?  &lt;a href=&quot;http://www.vivelive.com/emoticonos3d/index2.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;¡Descárgatelos gratis! &lt;/a&gt;&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
Kde-devel-es mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046406&amp;i=14&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;hr&gt;¿Quieres los nuevos emoticonos en 3D?  &lt;a href=&quot;http://www.vivelive.com/emoticonos3d/index2.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;¡Descárgatelos gratis! &lt;/a&gt;&lt;/div&gt;


&lt;/div&gt;&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
Kde-devel-es mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046406&amp;i=15&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;hr&gt;Hotmail en tu móvil allá donde vayas &lt;a href=&quot;http://serviciosmoviles.es.msn.com/hotmail/hotmail.aspx&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt; ¡Descúbrelo!&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
Kde-devel-es mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046406&amp;i=16&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;im&quot;&gt;&lt;br&gt;&lt;hr&gt;Messenger cumple 10 años  &lt;a href=&quot;http://www.vivelive.com/aniversariomessenger&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;¡Conéctate y celébralo con toda la comunidad!&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br&gt;_______________________________________________&lt;br&gt;
Kde-devel-es mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046406&amp;i=17&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;Kde-devel-es mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25046406&amp;i=18&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Kde-devel-es@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://mail.kde.org/mailman/listinfo/kde-devel-es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://mail.kde.org/mailman/listinfo/kde-devel-es&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Matar-hilos-%28QThread%29-con-el-tiempo-tp23554367p25046406.html" />
</entry>

</feed>
