<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>qt4 &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/qt4/</link>
	<description>Feed of posts on WordPress.com tagged "qt4"</description>
	<pubDate>Thu, 26 Nov 2009 08:38:02 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Q4-wine: Una gui per Wine compilata per voi per Sidux amd64]]></title>
<link>http://lippolweblog.wordpress.com/2009/11/18/q4-wine-una-gui-per-wine-compilata-per-voi-per-sidux-amd64/</link>
<pubDate>Wed, 18 Nov 2009 14:40:03 +0000</pubDate>
<dc:creator>lippol94</dc:creator>
<guid>http://lippolweblog.wordpress.com/2009/11/18/q4-wine-una-gui-per-wine-compilata-per-voi-per-sidux-amd64/</guid>
<description><![CDATA[Oggi vi voglio parlare di un software che a me è piaciuto molto. Si chiama Q4-wine ed è una gui (gra]]></description>
<content:encoded><![CDATA[Oggi vi voglio parlare di un software che a me è piaciuto molto. Si chiama Q4-wine ed è una gui (gra]]></content:encoded>
</item>
<item>
<title><![CDATA[Phonik leggero player audio qt4]]></title>
<link>http://kde4lqh.wordpress.com/2009/11/06/phonik-leggero-player-audio-qt4/</link>
<pubDate>Fri, 06 Nov 2009 15:02:22 +0000</pubDate>
<dc:creator>DjNeophyte</dc:creator>
<guid>http://kde4lqh.wordpress.com/2009/11/06/phonik-leggero-player-audio-qt4/</guid>
<description><![CDATA[Quello che vi presento è un progetto abbastanza giovane ma che promette assai bene,Phonik;interfacci]]></description>
<content:encoded><![CDATA[Quello che vi presento è un progetto abbastanza giovane ma che promette assai bene,Phonik;interfacci]]></content:encoded>
</item>
<item>
<title><![CDATA[Increasing Legibility For Text Entry: Using Monospaced Fonts]]></title>
<link>http://robertfield.wordpress.com/2009/11/04/increasing-legibility-for-text-entry-using-monospaced-fonts/</link>
<pubDate>Thu, 05 Nov 2009 02:03:25 +0000</pubDate>
<dc:creator>Robert Field</dc:creator>
<guid>http://robertfield.wordpress.com/2009/11/04/increasing-legibility-for-text-entry-using-monospaced-fonts/</guid>
<description><![CDATA[Advantages Of Fixed Pitch I think we&#8217;ve all had the experience of entering text on a web page,]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><span style="color:black;"></p>
<h3>Advantages Of Fixed Pitch</h3>
<p>I think we&#8217;ve all had the experience of entering text on a web page, or in a program, and discovering that we can&#8217;t distinguish what we&#8217;ve entered.  Many sans serif fonts, with <strong>Arial</strong> or <strong>Helvetica </strong>as the best known examples, have letters that closely resemble each other at when displayed at small sizes.  For example, the lower case letters &#8220;L&#8221; and &#8220;I&#8221; may differ by only a single pixel.  Given the current craze for low contrast between background and text, and the ever higher resolutions of screens, this can make reading text, but especially entering and proofreading text, into a maddening ordeal.</p>
<p>For headlines, this isn&#8217;t a such problem.  The characters are larger and easy to distinguish.  I have no complaints for that usage.  I use such fonts in this very blog.</p>
<h4>An Example</h4>
<p>Here are two screenshots the same dialog box, once with monospaced fonts and once without.  This is using Qt4, and in this case, it came out particularly nice in the monospace, fat easy to distinguish characters.</p>
<p>Monospaced:</p>
<p><img class="alignnone size-full wp-image-19" title="Screenshot-EASY TO READ" src="http://robertfield.wordpress.com/files/2009/11/screenshot-easy-to-read.png" alt="Screenshot-EASY TO READ" width="500" height="472" /></p>
<p>Sans Serif:</p>
<p><img class="alignnone size-full wp-image-20" title="Screenshot-HARD TO READ" src="http://robertfield.wordpress.com/files/2009/11/screenshot-hard-to-read.png" alt="Screenshot-HARD TO READ" width="500" height="472" /></p>
<h4>How To Do This In Qt4</h4>
<p>This turns out to be pleasingly easy. Here&#8217;s a subclass of <strong>QLineEdit</strong> and a helper function to create the font object itself.</p>
<pre>const QFont &#38;
get_mono_input_font ()
  {
    static bool is_setup = false;
    static QFont * p_the_font = 0;
    if (!is_setup)
      {
        p_the_font = new QFont ();
        p_the_font-&#62;setStyleHint (QFont::TypeWriter);
        p_the_font-&#62;setPointSize (14);
        p_the_font-&#62;setFamily ("Bitstream Vera Sans Mono");
        is_setup = true;
      }
    return *p_the_font;  }
};

class Legible_QLineEdit: public QLineEdit {
 public:
  Legible_QLineEdit ():QLineEdit ()
    {
      setFont (Art_Font_Manager::get_mono_input_font ());
    }
};</pre>
<p>I used 14 point to make the text big and easy to read.  Using the <strong>setStyleHint</strong> call helps us to get a monospaced type face if Bitstream Vera Sans Mono is unavailable.</p>
<h4>Use Black Text</h4>
<p>I added a <strong>&#60;span style=&#8221;color:black&#8221;&#62; &#8230; &#60;/span&#38;gt</strong> around the text to increase legibility, as well.  Why not CSS?  Because the free hosting doesn&#8217;t provide that.  So I have to make do.<br />
<br />
Seriously, it really does improve readability.  If you want lower contrast, it is much better to use black type and an off-white background than to make the type gray.<br />
</span></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[[qt4] qstring 에서 sprintf 을 사용해 보자]]></title>
<link>http://shellbt.wordpress.com/2009/11/04/qt4-qstring-%ec%97%90%ec%84%9c-sprintf-%ec%9d%84-%ec%82%ac%ec%9a%a9%ed%95%b4-%eb%b3%b4%ec%9e%90/</link>
<pubDate>Wed, 04 Nov 2009 01:20:02 +0000</pubDate>
<dc:creator>shellbt</dc:creator>
<guid>http://shellbt.wordpress.com/2009/11/04/qt4-qstring-%ec%97%90%ec%84%9c-sprintf-%ec%9d%84-%ec%82%ac%ec%9a%a9%ed%95%b4-%eb%b3%b4%ec%9e%90/</guid>
<description><![CDATA[qt4.5가 되면서 기존 qstring에는 없던 함수가 생긴거 같다.(확실치 않아~)바로 sprintf !!!기존엔 arg을 사용하던가 해야 했는데..(열라 짜증..)사용법은 쉽다]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>qt4.5가 되면서 기존 qstring에는 없던 함수가 생긴거 같다.(확실치 않아~)<br />바로 sprintf !!!<br />기존엔 arg을 사용하던가 해야 했는데..(열라 짜증..)<br />사용법은 쉽다구</p>
<p>QString a;<br />a.sprintf(&#8220;%d&#8221;,1234);</p>
<p>참 쉽죠잉~</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=abc76523-1c36-8f92-a546-45489f411474" /></div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Kapan bisa kayak gini?]]></title>
<link>http://keripixlicious.wordpress.com/2009/10/13/kapan-bisa-kayak-gini/</link>
<pubDate>Tue, 13 Oct 2009 08:48:55 +0000</pubDate>
<dc:creator>keripixlicious</dc:creator>
<guid>http://keripixlicious.wordpress.com/2009/10/13/kapan-bisa-kayak-gini/</guid>
<description><![CDATA[Ketika asik-asik surfing, ketemu deh ma blognya eric ross, salah satu developer KDE. Nah, disalah sa]]></description>
<content:encoded><![CDATA[Ketika asik-asik surfing, ketemu deh ma blognya eric ross, salah satu developer KDE. Nah, disalah sa]]></content:encoded>
</item>
<item>
<title><![CDATA[SilsilahQ: a fun project]]></title>
<link>http://keripixlicious.wordpress.com/2009/10/09/silsilahq-a-fun-project/</link>
<pubDate>Fri, 09 Oct 2009 03:32:00 +0000</pubDate>
<dc:creator>keripixlicious</dc:creator>
<guid>http://keripixlicious.wordpress.com/2009/10/09/silsilahq-a-fun-project/</guid>
<description><![CDATA[Berawal dari bincang-bincang dengan keluarga saat lebaran kemarin, muncullah dorongan untuk membuat ]]></description>
<content:encoded><![CDATA[Berawal dari bincang-bincang dengan keluarga saat lebaran kemarin, muncullah dorongan untuk membuat ]]></content:encoded>
</item>
<item>
<title><![CDATA[Достали баги Kopete? qutIM есть у нас ;)]]></title>
<link>http://hakushka.wordpress.com/2009/09/08/kopete-vs-qutim/</link>
<pubDate>Tue, 08 Sep 2009 13:45:35 +0000</pubDate>
<dc:creator>haku</dc:creator>
<guid>http://hakushka.wordpress.com/2009/09/08/kopete-vs-qutim/</guid>
<description><![CDATA[О IM-протоколах и клиентах можно рассуждать долго, но как ни крути именно аська популярна сейчас и м]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>О <strong>IM</strong>-протоколах и клиентах можно рассуждать долго, но как ни крути именно аська популярна сейчас и множество народу пользуется ей постоянно. В <strong>Linux</strong> тьма-тьмущая способов быть на связи, к примеру через транспорт <strong>jabber</strong> (в котором честно говоря мне лениво разбираться). А так же множество программ разной степени паршивости: <strong>kopete</strong> (с настройками можно разбираться два месяца), <strong>pidgin</strong> (не люблю GTK), <strong>SiM</strong> (больше всего мне понравился, хотя он фактически труп), <strong>licq</strong> (проблемы с кодировками) и т.д.</p>
<p><img class="alignleft size-full wp-image-106" title="qutim-logo" src="http://hakushka.wordpress.com/files/2009/09/qutim2.png" alt="" /> И тут на сцену выходит (в зале бурные аплодисменты) <strong>qutIM</strong> &#8212; бесплатный, open-source, многопротокольный, модульный (ICQ, Jabber/GTalk/Ya.Online/LiveJournal.com, Mail.Ru, IRC ) клиент для общения.<!--more--></p>
<p>Не забудьте установить <strong>layman</strong> и подключить оверлей в <strong>make.conf</strong> если это ещё не было сделано:</p>
<blockquote><p><code>emerge -av layman<br />
echo "SOURCE /usr/local/portage/layman/make.conf" &#62;&#62; /etc/make.conf</code></p></blockquote>
<p>Добавляем оверлей в систему:</p>
<blockquote><p><code>layman -o http://qutim-overlay.googlecode.com/files/my-list.xml -f -a qutim-overlay<br />
</code></p></blockquote>
<p>Командой eix -c qutim можно ознакомиться с со списком плагинов. А вот набор флагов по умолчанию для версии ~0.2_beta1 мне не понравился, поэтому сделаем немного по-другому:</p>
<blockquote><p><code><br />
echo "net-im/qutim -jabber kdeintegration" &#62;&#62; /etc/portage/package.use<br />
echo "net-im/qutim" &#62;&#62; /etc/portage/package.keywords<br />
echo "net-im/qutim-kdeintegration" &#62;&#62; /etc/portage/package.keywords<br />
echo "net-im/qutim-icq" &#62;&#62; /etc/portage/package.keywords</code></p></blockquote>
<p>После установки программы, главное окно и окошко выбора статуса выглядит примерно так:<br />
<img src="http://hakushka.wordpress.com/files/2009/09/qutim1.png" alt="" /></p>
<p>В заключение хочу сказать что клиент ОЧЕНЬ приятный, советую собрать-попробовать.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Qt4 Interval Arithmetics Solver Example ]]></title>
<link>http://olivierreynet.wordpress.com/2009/09/07/qt4-interval-arithmetics-solver-example/</link>
<pubDate>Mon, 07 Sep 2009 18:53:06 +0000</pubDate>
<dc:creator>oreynet</dc:creator>
<guid>http://olivierreynet.wordpress.com/2009/09/07/qt4-interval-arithmetics-solver-example/</guid>
<description><![CDATA[HERE you can find a simple example of an interval arithmetics solver with a graphical interface. To ]]></description>
<content:encoded><![CDATA[HERE you can find a simple example of an interval arithmetics solver with a graphical interface. To ]]></content:encoded>
</item>
<item>
<title><![CDATA[QtAcl ]]></title>
<link>http://najar.wordpress.com/2009/09/07/qtacl/</link>
<pubDate>Mon, 07 Sep 2009 08:35:58 +0000</pubDate>
<dc:creator>najar</dc:creator>
<guid>http://najar.wordpress.com/2009/09/07/qtacl/</guid>
<description><![CDATA[QtAcl &#8211; графический инструментарий для управления списками прав доступа (posix Acl) файлов и к]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>QtAcl</strong> &#8211; графический инструментарий для управления списками прав доступа (posix Acl) файлов и каталогов.</p>
<p>Утилита написана с использованием Qt4 и фактически является фронтендом к программе acl.</p>
<div id="attachment_31" class="wp-caption alignnone" style="width: 284px"><img class="size-full wp-image-31" title="snapshot1" src="http://najar.wordpress.com/files/2009/09/snapshot1.png" alt="Properties" width="274" height="472" /><p class="wp-caption-text">Properties</p></div>
<div id="attachment_32" class="wp-caption alignnone" style="width: 296px"><img class="size-full wp-image-32" title="snapshot2" src="http://najar.wordpress.com/files/2009/09/snapshot2.png" alt="Properties" width="286" height="462" /><p class="wp-caption-text">Properties</p></div>
<p>svn репозиторий:  <a title="https://qtacl.svn.sourceforge.net/svnroot/qtacl" href="https://qtacl.svn.sourceforge.net/svnroot/qtacl"></a><a>https://qtacl.svn.sourceforge.net/svnroot/qtacl</a></p>
<ul>
<li>Для установки необходимо:</li>
</ul>
<p>скачать исходники с svn:</p>
<p><em><code>svn co https://qtacl.svn.sourceforge.net/svnroot/qtacl qtacl </code></em></p>
<ul>
<li>Зайти в qtacl и сделать <em>qmake &#38;&#38; make<br />
</em></li>
</ul>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Qt visual artefacts on Mac OS X 10.6]]></title>
<link>http://successfulsoftware.net/2009/09/03/qt-visual-artefacts-on-mac-os-x-10-6/</link>
<pubDate>Thu, 03 Sep 2009 23:18:58 +0000</pubDate>
<dc:creator>Andy Brice</dc:creator>
<guid>http://successfulsoftware.net/2009/09/03/qt-visual-artefacts-on-mac-os-x-10-6/</guid>
<description><![CDATA[The release of Mac OS X 10.6 (Snow Leopard) snuck up on me while I have been working hard on a major]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><img class="alignleft size-full wp-image-2359" title="deploy_nearly_everywhere" src="http://successfulsoftware.wordpress.com/files/2009/09/deploy_nearly_everywhere.png" alt="deploy_nearly_everywhere" width="261" height="84" />The release of Mac OS X 10.6 (Snow Leopard) snuck up on me while I have been working hard on a major new release of PerfectTablePlan plan. I didn&#8217;t really want to risk messing up my stable Mac development machine by installing it, so I asked <a href="https://www.testlab2.com/">testlab2.com</a> (who have been doing some third party testing for me) to test my latest beta on it.</p>
<p>Bad news. All the combo boxes in my application (which work fine in Mac OS X 10.3, 10.4 and 10.5) have visual artefacts on Mac OS X 10.6. They work fine, but they don&#8217;t look right. I wondered if the artefact could be unique to some weird configuration on testlab2&#8217;s test machine, so I asked the fine folk on <a href="http://tech.groups.yahoo.com/group/macsb/">macsb mailing list</a> to see if they could replicate it. 4 of them tried (thanks Cesar, Jon, Aaron and Pierre) and they all saw the visual artefacts. Damn.</p>
<p>I posted a question on the qt-interest forum. The single response (thanks Francesco) mentioned that this issue had been reported in the Qt development blog. I managed to <a href="http://labs.trolltech.com/blogs/2009/08/31/qt-46-on-mac-os-106/">find the blog post</a>, applied the recommended single line code patch to Qt 4.4.2 and rebuilt everything. Cesar from macsb kindly re-tried the new binaries and reports that this improved things, but some artefacts are still visible the first time a combo box is shown. Perhaps the patch works better for Qt 4.5.</p>
<p style="text-align:left;">
<div id="attachment_2356" class="wp-caption aligncenter" style="width: 389px"><img class="size-full wp-image-2356" title="visual artefact" src="http://successfulsoftware.wordpress.com/files/2009/09/visual-artefact.png" alt="Note the artefacts at the top and bottom of the combo box drop-down list" width="379" height="134" /><p class="wp-caption-text">Note the artefacts at the top and bottom of the combo box drop-down list</p></div>
<p>It looks like I am going to have to release it like this, unless someone knows of a better patch. This is very annoying after the months of hard work I have put into the new release. Aesthetics are important for commercial software, especially on the Mac. This could cost me quite a few sales.</p>
<p>I am not on the very latest release of Qt, but apparently this issue would still occur even if I was. Qt/Nokia have announced that they don&#8217;t expect to  support Mac OS X 10.6 until they release Qt 4.6, whenever that might be. What use is a cross-platform toolkit that doesn&#8217;t support the latest major OSs?</p>
<p>Developer releases of 10.6 have been available for a while &#8211; I believe the Qt team should have burnt the midnight oil to make sure they had a release that properly supported 10.6 as soon as it became generally available.  I know that isn&#8217;t easy given the size of the Qt framework and Apple&#8217;s penchant for secretiveness. But that is the game they are in and that is what I expect. I think they have seriously dropped the ball here, and this is coming from a longtime Qt fan-boy. Perhaps they have spread themselves a bit too thin by moving to <a href="http://successfulsoftware.net/2009/01/14/qt-to-be-available-for-free-under-lgpl/">LGPL licensing</a>.</p>
<p>I have written this post as a quick heads up to other Qt developers. Thanks to everyone that helped me get this far.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[MySql y Qt4]]></title>
<link>http://gabizzz.wordpress.com/2009/09/02/mysql-y-qt4/</link>
<pubDate>Wed, 02 Sep 2009 10:18:25 +0000</pubDate>
<dc:creator>gabizzz</dc:creator>
<guid>http://gabizzz.wordpress.com/2009/09/02/mysql-y-qt4/</guid>
<description><![CDATA[Pre requisitos. 1.Descarga e instala MySQL (essentials msi-package es suficiente) desde MySQL.com (A]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>Pre requisitos. </strong><br />
1.Descarga e instala MySQL (essentials msi-package es suficiente) desde MySQL.com (Asegurate de instalar &#8220;C Include Files  y Lib Files&#8221; tambien).<br />
2.Descarga mingw-utils (instrucciones: mingw.org). Descomprime y copia el contenido de la carpeta bin al directorio %QTDIR%/bin.</p>
<p><strong>Como construir el Plug-in.</strong><br />
1.Abrir el Qt Command Prompt e ir al directorio donde se encuentra instalado el MySQL server (C:\MySQL  ubicación recomendada).<br />
2.Ir al subdirectorio lib/opt y corre:<br />
reimp libmysql.lib<br />
para producir el archivo liblibmysql.a. Esta es la biblioteca de importación para su uso con MinGW.<br />
3.Ir a %QTDIR%/src/plugins/sqldrivers/mysql.<br />
4.Ejecutar el siguiente comando:<br />
qmake -o Makefile &#8220;INCLUDEPATH+=C:\MySQL\include&#8221; &#8220;LIBS+=C:\MySQL\lib\opt\liblibmysql.a&#8221; mysql.pro<br />
QMake no maneja espacios cuando busca paths.<br />
5.Ejecuta mingw32-make este construirá los archivos qsqlmysql.dll, qsqlmysqld.dll, libqsqlmysql.a, libqsqlmysqld.a  en el directorio%QTDIR%/plugins/sqldrivers.<br />
6.Copiar el archivo libmysql.dll desde el directorio de instalacion bin de MySQL al directorio %QTDIR%/bin.<br />
7.Limpiar el Cache de plug-ins:<br />
Ejecutar desde windows regedit y eliminar las siguientes entradas:<br />
HKEY_CURRENT_USER\Software\Trolltech\OrganizationDefaults\Qt Plugin Cache 4.2.debug<br />
HKEY_CURRENT_USER\Software\Trolltech\OrganizationDefaults\Qt Plugin Cache 4.2.false<br />
<strong> Camino mas corto, si contamos con los drivers.</strong><br />
1.Copiar los archivos qsqlmysql.dll, qsqlmysqld.dll, libqsqlmysql.a, libqsqlmysqld.a  en el directorio%QTDIR%/plugins/sqldrivers.</p>
<p>2.Copiar el archivo libmysql.dll desde el directorio de instalacion bin de MySQL al directorio %QTDIR%/bin.</p>
<p>3.Limpiar el Cache de plug-ins:<br />
Ejecutar desde windows regedit y eliminar las siguientes entradas:<br />
HKEY_CURRENT_USER\Software\Trolltech\OrganizationDefaults\Qt Plugin Cache 4.2.debug<br />
HKEY_CURRENT_USER\Software\Trolltech\OrganizationDefaults\Qt Plugin Cache 4.2.false</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Lanzado Opera 10 final]]></title>
<link>http://projectwp.wordpress.com/2009/09/01/lanzado-opera-10-final/</link>
<pubDate>Tue, 01 Sep 2009 19:43:25 +0000</pubDate>
<dc:creator>projectwp</dc:creator>
<guid>http://projectwp.wordpress.com/2009/09/01/lanzado-opera-10-final/</guid>
<description><![CDATA[Ha sido lanzada la versión Final del navegador web Opera, del cual ya les había hablado anteriorment]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Ha sido lanzada la versión Final del navegador web Opera, del cual ya les había hablado anteriormente.</p>
<p>Debido a falta de tiempo no podré publicar de momento un análisis detallado de los cambios en ésta nueva versión así que sólo les sugeriré que lo descarguen en lo que obtengo algo de tiempo libre para hablarles mas sobre él.</p>
<p>Pueden leer el anuncio oficial en el Blog de <strong><span style="color:#ff0000;">Opera</span></strong></p>
<p style="text-align:left;"><a href="http://my.opera.com/community/blog/2009/09/01/opera-10-launch" target="_blank">http://my.opera.com/community/blog/2009/09/01/opera-10-launch</a></p>
<p style="text-align:center;"><a href="http://my.opera.com/community/download.pl?ref=SHReich&#38;p=opera_desktop"><img class="aligncenter" src="http://promote.opera.com/myopera/opera.jpg" alt="Opera, the fastest and most secure web browser" /></a><br />
<a href="http://my.opera.com/"><img src="http://promote.opera.com/myopera/myopera.jpg" alt="My Opera, free blog and photo sharing community" /></a></p>
<p style="text-align:left;"><strong>Nota:</strong> Los usuarios de Ubuntu/Debian y derivados con KDE 4.x que deseen la versión en QT4 podrán descargarla dando click <a href="http://ftp.opera.com/pub/opera/linux/1000/final/en/i386/" target="_blank">aquí</a>.</p>
<p style="text-align:left;">Para otras distribuciones que usen RPM como Mandriva, Fedora, openSUSE, etc pueden descargar la versión QT4 dando click <a href="http://ftp.opera.com/pub/opera/linux/1000/final/en/i386/opera-10.00.gcc4.qt4.i386.rpm" target="_blank">aquí</a>.</p>
<p style="text-align:left;">Para los usuarios de OS de 64 bits (Linux):</p>
<p style="text-align:left;">Para Ubuntu/Debain/Mint en qt4 a 64 bits dar click <a href="http://ftp.opera.com/pub/opera/linux/1000/final/en/x86_64/opera_10.00.4585.gcc4.qt4_amd64.deb" target="_blank">aquí</a></p>
<p style="text-align:left;">Para Mandriva/Fedora/SUSE en qt4 a 64 bits dar click <a href="http://ftp.opera.com/pub/opera/linux/1000/final/en/x86_64/opera-10.00.gcc4.qt4.x86_64.rpm" target="_blank">aquí</a></p>
<p style="text-align:left;">Mas opciones de descarga en <strong>Linux</strong>:</p>
<p style="text-align:left;"><a href="http://ftp.opera.com/pub/opera/linux/1000/final/en/i386/" target="_blank">http://ftp.opera.com/pub/opera/linux/1000/final/en/i386/</a> (32 bits)</p>
<p style="text-align:left;"><a href="http://ftp.opera.com/pub/opera/linux/1000/final/en/x86_64/" target="_blank">http://ftp.opera.com/pub/opera/linux/1000/final/en/x86_64/</a> (64 bits)</p>
<p style="text-align:left;"><a href="http://ftp.opera.com/pub/opera/linux/1000/final/en/ppc/" target="_blank">http://ftp.opera.com/pub/opera/linux/1000/final/en/ppc/</a> (PowerPC sólo QT3)</p>
<p style="text-align:left;"><span style="color:#ff0000;"><strong>Opera</strong></span> Webpage</p>
<p style="text-align:left;"><a href="http://www.opera.com/" target="_blank">http://www.opera.com/</a></p>
<p style="text-align:left;">
<p><!-- AddThis Button BEGIN --></p>
<div><a title="Bookmark and Share" href="http://www.addthis.com/bookmark.php?v=250&#38;pub=projectwp" target="_blank"><img style="border:0;" src="http://s7.addthis.com/static/btn/v2/lg-share-en.gif" alt="Bookmark and Share" width="125" height="16" /></a></div>
<p><!-- AddThis Button END --></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Opera 10 Final Qt4]]></title>
<link>http://morningsviews.wordpress.com/2009/09/01/opera-10-final-qt4/</link>
<pubDate>Tue, 01 Sep 2009 13:53:58 +0000</pubDate>
<dc:creator>paran0id</dc:creator>
<guid>http://morningsviews.wordpress.com/2009/09/01/opera-10-final-qt4/</guid>
<description><![CDATA[Ya está, ya ha salido la versión final de Opera 10. Para actualizar o simplemente probar esta versió]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:justify;">Ya está, ya ha salido la versión final de Opera 10. Para actualizar o simplemente probar esta versión solo hay que ir a la siguiente <a href="http://get.opera.com/pub/opera/linux/1000/final/en/" target="_blank"><strong>página</strong></a>, elegir arquitectura y descargar el paquete que más nos convenga <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p style="text-align:justify;">
<div id="attachment_197" class="wp-caption aligncenter" style="width: 310px"><a href="http://morningsviews.wordpress.com/files/2009/09/opera-10-final.png"><img class="size-medium wp-image-197" title="Opera 10 Final" src="http://morningsviews.wordpress.com/files/2009/09/opera-10-final.png?w=300" alt="Opera 10 Final" width="300" height="209" /></a><p class="wp-caption-text">Opera 10 Final</p></div>
<p style="text-align:justify;">Para los vagos aquí están los enlaces para la versión Qt4:</p>
<p style="text-align:center;"><strong>i386</strong>:</p>
<p style="text-align:center;">Fedora: <a href="http://get.opera.com/pub/opera/linux/1000/final/en/i386/opera-10.00.gcc4.qt4.i386.rpm">opera-10.00.gcc4.qt4.i386.rpm</a> &#124; Kubuntu: <a href="http://get.opera.com/pub/opera/linux/1000/final/en/i386/opera_10.00.4585.gcc4.qt4_i386.deb">opera_10.00.4585.gcc4.qt4_i386.deb<br />
</a></p>
<p style="text-align:center;"><strong>x86_64:</strong></p>
<p style="text-align:center;">Fedora: <a href="http://get.opera.com/pub/opera/linux/1000/final/en/x86_64/opera-10.00.gcc4.qt4.x86_64.rpm">opera-10.00.gcc4.qt4.x86_64.rpm</a> &#124; Kubuntu: <a href="http://get.opera.com/pub/opera/linux/1000/final/en/x86_64/opera_10.00.4585.gcc4.qt4_amd64.deb">opera_10.00.4585.gcc4.qt4_amd64.deb</a></p>
<p style="text-align:justify;">
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Opera 10 RC y Qt4]]></title>
<link>http://morningsviews.wordpress.com/2009/08/26/opera-10-rc-y-qt4/</link>
<pubDate>Wed, 26 Aug 2009 18:58:48 +0000</pubDate>
<dc:creator>paran0id</dc:creator>
<guid>http://morningsviews.wordpress.com/2009/08/26/opera-10-rc-y-qt4/</guid>
<description><![CDATA[Y bueno, el proyecto Opera 10 sigue avanzando y ahora va por la versión RC (Release Candidate), para]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:justify;">
<p style="text-align:justify;">Y bueno, el proyecto Opera 10 sigue avanzando y ahora va por la versión RC (Release Candidate), para descargarla en su versión Qt4 sólo hay dirigirse a <a href="http://snapshot.opera.com/unix/rc-4570/" target="_blank"><strong>esta página</strong></a> y elegimos nuestra arquitectura (32 bits o 64).</p>
<p style="text-align:justify;">
<div id="attachment_189" class="wp-caption aligncenter" style="width: 310px"><a href="http://morningsviews.wordpress.com/files/2009/08/opera-rc.png"><img class="size-medium wp-image-189" title="Opera RC" src="http://morningsviews.wordpress.com/files/2009/08/opera-rc.png?w=300" alt="Opera RC (Compilación 4570)" width="300" height="209" /></a><p class="wp-caption-text">Opera RC (Compilación 4570)</p></div>
<p><strong>OFF TOPIC: </strong>Ya está disponible la traducción <strong>total</strong> de KDE 4.3 en Fedora <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Aplicaciones KDE que no deben faltar en tu S.O.]]></title>
<link>http://morningsviews.wordpress.com/2009/08/20/aplicaciones-kde-que-no-deben-faltar-en-tu-s-o/</link>
<pubDate>Thu, 20 Aug 2009 13:13:44 +0000</pubDate>
<dc:creator>paran0id</dc:creator>
<guid>http://morningsviews.wordpress.com/2009/08/20/aplicaciones-kde-que-no-deben-faltar-en-tu-s-o/</guid>
<description><![CDATA[Hoy escribiré sobre algunas aplicaciones que se utilizan a menudo para KDE (independientemente de tu]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:justify;">Hoy escribiré sobre algunas aplicaciones que se utilizan a menudo para <strong>KDE</strong> (independientemente de tu distribución Linux) y, que por lo tanto utilizan librerías <strong>QT4</strong>. La lista es la siguiente:</p>
<ul>
<li style="text-align:justify;"><strong>Internet</strong></li>
</ul>
<p><strong>1. Ktorrent:</strong> como la mayoría sabemos, es un cliente <a href="http://es.wikipedia.org/wiki/BitTorrent_%28protocolo%29" target="_blank"><strong>bittorrent</strong></a>. Tiene buena integración con el entorno KDE y en la mayoría de <em>distros</em> viene incluido por defecto.</p>
<p style="text-align:center;">
<div id="attachment_172" class="wp-caption aligncenter" style="width: 310px"><a href="http://morningsviews.wordpress.com/files/2009/08/ktorrent.png"><img class="size-medium wp-image-172" title="Ktorrent" src="http://morningsviews.wordpress.com/files/2009/08/ktorrent.png?w=300" alt="Ktorrent" width="300" height="196" /></a><p class="wp-caption-text">KTorrent</p></div>
<p style="text-align:center;">Página oficial: <a href="http://ktorrent.org/" target="_blank"><strong>KTorrent.org</strong></a></p>
<p style="text-align:center;">
<p style="text-align:center;"><!--more--></p>
<p><strong>2. *Arora:</strong> es un navegador web multiplataforma, rápido y ligero; basado en <a href="http://es.wikipedia.org/wiki/WebKit" target="_blank"><strong>Webkit</strong></a>.</p>
<p style="text-align:center;">
<div id="attachment_173" class="wp-caption aligncenter" style="width: 310px"><a href="http://morningsviews.wordpress.com/files/2009/08/arora.png"><img class="size-medium wp-image-173" title="Arora" src="http://morningsviews.wordpress.com/files/2009/08/arora.png?w=300" alt="Arora Navegador Web" width="300" height="205" /></a><p class="wp-caption-text">Arora Navegador Web</p></div>
<p style="text-align:center;">Página oficial: <a href="http://code.google.com/p/arora/" target="_blank"><strong>Arora</strong></a></p>
<p style="text-align:center;">
<p><strong>3. *Kmess:</strong> una muy buena alternativa a otros clientes de mensajería instantánea del momento (como Kopete, aMSN, etc.) que utiliza las librerías QT4 y que tiene buena integración con el escritorio plasma.</p>
<p style="text-align:center;">
<div id="attachment_174" class="wp-caption aligncenter" style="width: 143px"><a href="http://morningsviews.wordpress.com/files/2009/08/kmess2.png"><img class="size-medium wp-image-174" title="Kmess2" src="http://morningsviews.wordpress.com/files/2009/08/kmess2.png?w=133" alt="Kmess 2.0" width="133" height="300" /></a><p class="wp-caption-text">Kmess 2.0</p></div>
<p style="text-align:center;">Página oficial: <a href="http://kmess.org/" target="_blank"><strong>KMess.org</strong></a></p>
<p style="text-align:center;">Para instalar mira este <a href="http://morningsviews.wordpress.com/2009/07/25/kmess-2-0/" target="_self"><strong>post</strong></a>.</p>
<p style="text-align:center;">
<p><strong>4. Konversation: </strong>es un cliente para <a href="http://es.wikipedia.org/wiki/Irc" target="_blank"><strong>IRC</strong></a>.</p>
<p style="text-align:center;">
<div id="attachment_175" class="wp-caption aligncenter" style="width: 310px"><a href="http://morningsviews.wordpress.com/files/2009/08/konversation.png"><img class="size-medium wp-image-175" title="Konversation" src="http://morningsviews.wordpress.com/files/2009/08/konversation.png?w=300" alt="Konersation" width="300" height="228" /></a><p class="wp-caption-text">Konersation</p></div>
<p style="text-align:center;">Páginal oficial: <a href="http://konversation.kde.org/" target="_blank"><strong>Konersation</strong></a></p>
<p style="text-align:center;">
<p style="text-align:justify;">
<ul>
<li><strong>Multimedia</strong></li>
</ul>
<p><strong>1. *SMPlayer:</strong> es un fantástico <a href="http://es.wikipedia.org/wiki/Front-end_y_back-end" target="_blank"><strong>front-end</strong></a> para KDE del reproductor MPlayer, tiene buena integración y además para estilos como Bespin.</p>
<p style="text-align:center;">
<div id="attachment_176" class="wp-caption aligncenter" style="width: 310px"><a href="http://morningsviews.wordpress.com/files/2009/08/smplayer.png"><img class="size-medium wp-image-176" title="SMPlayer" src="http://morningsviews.wordpress.com/files/2009/08/smplayer.png?w=300" alt="SMPlayer con el estilo Bespin." width="300" height="200" /></a><p class="wp-caption-text">SMPlayer con el estilo Bespin.</p></div>
<p style="text-align:center;">Página oficial: <a href="http://smplayer.sourceforge.net/"><strong>SMPlayer</strong></a></p>
<p style="text-align:center;">
<p><strong>2. Amarok:</strong> me parece que este no necesita descripción xD pero por si acaso&#8230; es un reproductor de audio, el mejor para mi gusto.</p>
<p style="text-align:center;">
<div id="attachment_113" class="wp-caption aligncenter" style="width: 310px"><a href="http://morningsviews.wordpress.com/files/2009/08/amarokconbespin.png"><img class="size-medium wp-image-113" title="amarokconbespin" src="http://morningsviews.wordpress.com/files/2009/08/amarokconbespin.png?w=300" alt="amarok &#34;con&#34; Bespin" width="300" height="180" /></a><p class="wp-caption-text">Amarok &#34;con&#34; Bespin</p></div>
<p style="text-align:center;">Página oficial: <a href="http://amarok.kde.org/" target="_blank"><strong>Amarok</strong></a></p>
<p style="text-align:center;">
<p><strong>3.*Avidemux Qt:</strong> este es un editor de vídeos, a simple vista puede parecer sencillo y poca cosa pero es más que eso, solo hay que saber un poco qué hacer.</p>
<p style="text-align:center;">
<div id="attachment_177" class="wp-caption aligncenter" style="width: 310px"><a href="http://morningsviews.wordpress.com/files/2009/08/avidemux.png"><img class="size-medium wp-image-177" title="Avidemux" src="http://morningsviews.wordpress.com/files/2009/08/avidemux.png?w=300" alt="Avidemux" width="300" height="214" /></a><p class="wp-caption-text">Avidemux</p></div>
<p style="text-align:center;">Página oficial: <a href="http://fixounet.free.fr/avidemux/"><strong>Avidemux</strong></a></p>
<p style="text-align:center;">
<p><strong>4. *Acetone ISO 2:</strong> sirve para montar imágenes .iso, muy bueno.</p>
<p style="text-align:center;">
<div id="attachment_178" class="wp-caption aligncenter" style="width: 310px"><a href="http://morningsviews.wordpress.com/files/2009/08/aceonteiso.png"><img class="size-medium wp-image-178" title="AceonteISO" src="http://morningsviews.wordpress.com/files/2009/08/aceonteiso.png?w=300" alt="AceonteISO 2" width="300" height="163" /></a><p class="wp-caption-text">AceonteISO 2</p></div>
<p style="text-align:center;">Página oficial: <a href="http://www.acetoneteam.org/" target="_blank"><strong>Acetone ISO</strong></a></p>
<p style="text-align:center;">
<p><strong>5. K3b:</strong> otro que creo que no necesita descripción, pero&#8230; Es un grabador de CDs, DVDs&#8230; Y que recientemente ha sido portado a las librerías Qt4.</p>
<p style="text-align:center;">
<div id="attachment_179" class="wp-caption aligncenter" style="width: 310px"><a href="http://morningsviews.wordpress.com/files/2009/08/k3b.png"><img class="size-medium wp-image-179" title="K3B" src="http://morningsviews.wordpress.com/files/2009/08/k3b.png?w=300" alt="K3b" width="300" height="225" /></a><p class="wp-caption-text">K3b</p></div>
<p style="text-align:center;">Sitio oficial: <a href="http://k3b.plainblack.com/"><strong>K3b</strong></a></p>
<p style="text-align:center;">
<p style="text-align:justify;">*Estas aplicaciones no vienen incluidas en algunas de las distribuciones Linux, por lo que tendrás que instalarlas tú mismo. Si utilizas Fedora puedes instalarlas escribiendo en la consola:</p>
<blockquote>
<p style="text-align:justify;">su -</p>
<p style="text-align:justify;">yum install programa</p>
</blockquote>
<p style="text-align:justify;">Y si usas Kubuntu y quieres saber si está en los repositorios oficiales escribe:</p>
<blockquote>
<p style="text-align:justify;">sudo -i</p>
<p style="text-align:justify;">aptitude search programa</p>
</blockquote>
<p style="text-align:justify;">Evidentemente, para saber más sobre estas aplicaciones siempre puedes visitar su página oficial.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Actualizaciones: Opera 10 Beta 3 Qt4 y Aurorae 0.2.1]]></title>
<link>http://morningsviews.wordpress.com/2009/08/14/actualizaciones-opera-10-beta-3-y-aurorae-0-2-1/</link>
<pubDate>Fri, 14 Aug 2009 12:53:54 +0000</pubDate>
<dc:creator>paran0id</dc:creator>
<guid>http://morningsviews.wordpress.com/2009/08/14/actualizaciones-opera-10-beta-3-y-aurorae-0-2-1/</guid>
<description><![CDATA[Opera: bueno, hace poco se acaba de liberar la beta 3 la versión 10, para descargarla nos vamos a la]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:justify;"><strong>Opera:</strong> bueno, hace poco se acaba de liberar la beta 3 la versión 10, para descargarla nos vamos a la siguiente <a href="http://get.opera.com/pub/opera/linux/1000b3/beta3/en/"><strong>página</strong></a>, elegimos nuestra arquitectura y el paquete que nos convenga (.rpm para Fedora y .deb para Kubuntu). Tienes paquetes para las librerías Qt3 y Qt4 <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p style="text-align:justify;">
<div id="attachment_148" class="wp-caption aligncenter" style="width: 310px"><a href="http://morningsviews.wordpress.com/files/2009/08/operab3.png"><img class="size-medium wp-image-148" title="Operab3" src="http://morningsviews.wordpress.com/files/2009/08/operab3.png?w=300" alt="Opera 10 Beta 3 con Qt4" width="300" height="210" /></a><p class="wp-caption-text">Opera 10 Beta 3 con Qt4</p></div>
<p style="text-align:justify;"><strong>Aurorae:</strong> y también hay actualización para este decorador de ventanas, en concreto ha salido la versión 0.2.1. Para descargarla nos vamos a <a href="http://www.kde-look.org/content/show.php/Aurorae+Theme+Engine?content=107158"><strong>KDE-Look</strong></a> y nos bajamos el archivo .tar.gz. Para instalar, son los mismos pasos que ya expliqué en su día en este <a href="http://morningsviews.wordpress.com/2009/07/16/aurorae-decorador-de-ventanas-para-kde/"><strong>post</strong></a>.</p>
<p style="text-align:justify;">Recomiendo que antes de actualizar Aurorae se desactive primero, es decir, elegir otra decoración como Ozono, por ejemplo.</p>
<p style="text-align:center;">
<div id="attachment_152" class="wp-caption aligncenter" style="width: 334px"><a href="http://morningsviews.wordpress.com/files/2009/08/aurorae0-2-1.png"><img class="size-full wp-image-152  " title="Aurorae0-2-1" src="http://morningsviews.wordpress.com/files/2009/08/aurorae0-2-1.png" alt="Aurorae 0.2.1" width="324" height="241" /></a><p class="wp-caption-text">Aurorae 0.2.1</p></div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[A weather plasmoid in python]]></title>
<link>http://hardikmehta.wordpress.com/2009/08/13/a-weather-plasmoid-in-python/</link>
<pubDate>Thu, 13 Aug 2009 20:02:53 +0000</pubDate>
<dc:creator>hardikmehta</dc:creator>
<guid>http://hardikmehta.wordpress.com/2009/08/13/a-weather-plasmoid-in-python/</guid>
<description><![CDATA[Ever since I heard about plasma I was eager to find ways to write my own plasmoid. But for the devel]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:justify;">Ever since I heard about <a title="Plasma" href="http://plasma.kde.org/" target="_blank">plasma</a> I was eager to find ways to write my own plasmoid. But for the development of binary plasmoids, it is necessary to compile at least a part of kde4, at least this is what I understood from the prerequisite listed on the official <a href="http://techbase.kde.org/Development/Tutorials/Plasma/GettingStarted">tutorial</a>. This discouraged me a bit. Moreover, I think that installation of the binary gadgets also requires to either package them properly according to the distribution you want to distribute for or you need to provide the sources that requires the users to build them. This  in my opinion is really a huge overhead for small applications like desktop gadgets / widgets. Then I found that it is also possible to develop plasmoids with script languages like <a title="Plasmoids in python" href="http://techbase.kde.org/Development/Tutorials/Plasma#Plasma_Programming_with_Python" target="_blank">python</a>, <a title="Plasmoids in ruby" href="http://techbase.kde.org/Development/Tutorials/Plasma#Plasma_Programming_with_Ruby" target="_blank">ruby</a> and <a title="Plasmoids in javascript" href="http://techbase.kde.org/Development/Tutorials/Plasma#Plasma_Programming_with_JavaScript" target="_blank">javascript</a>.</p>
<p style="text-align:justify;">Even though, I didn&#8217;t know PyQT4 or PyKDE4 libraries at all, I decided to write my first plasmoid in python.  This is an exremely simple plasmoid, the core of which was put together in a few hours on a rainy weekend. I have to admit that being a java developer, my code is not pythonic enough.</p>
<p style="text-align:justify;">
<p style="text-align:justify;">It can be downloaded from: <a title="plasma_pyweather" href="http://kde-look.org/content/show.php?content=110137" target="_blank">kde-look</a>.</p>
<p style="text-align:justify;">Here the source code: <a title="plasma_pyweather" href="http://github.com/rangalo/plasma_pyweather/tree/non-widget" target="_blank">plasma_pyweather</a>.</p>
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;">
<p style="text-align:justify;"><img class="alignleft size-full wp-image-459" style="margin-left:10px;margin-right:10px;" title="wplasmoid_greytrans" src="http://hardikmehta.wordpress.com/files/2009/08/wplasmoid_greytrans.png" alt="wplasmoid_greytrans" width="343" height="326" />The layout is based on my conky setup described <a title="Conky weather script" href="http://hardikmehta.wordpress.com/2009/08/04/a-script-to-display-weather-forecast-for-conkyconky-screen-shot/" target="_blank">here</a>. I have tried to keep it as compact as possible including most of the provided information, if not all.  I don&#8217;t want the weather information to cover most of the screen.  The initial version of the plasmoid was written using the QT4 widgets, but was looking ugly.</p>
<p style="text-align:justify;">The weather information is fetched from <a title="Google weather api" href="http://blog.emerick.org/2008/05/07/google-weather-api-feed-documentation/" target="_blank">google weather api</a>. The location and the unit are configurable. The api provides forecast only for the next 3 days, so the number of forecast days were not made configurable.  Some how for google weather api the locale and so the unit is connected to the language, therefor  I had to convert the units myself. To keep the display compact I rounded the temperatures to integers.</p>
<p style="text-align:justify;">I got to learn PyQT4 and PyKDE4 libraries while writing this. Especially PyQT4 is a very powerful gui library for python.  It is fun programming with it. I have used <a title="Eclipse" href="http://eclipse.org/" target="_blank">eclipse</a> + <a title="Pydev" href="http://pydev.sourceforge.net/" target="_blank">pydev</a> for developing. In the beginning I didn&#8217;t have the auto-completion for PyQT4 as well as PyKDE4 in this environment, because they are not installed as pure python source code files. I could fix this with following <a title="Answer" href="http://stackoverflow.com/questions/1167065/autocompletion-not-working-with-pyqt4-and-pykde4-in-most-of-the-ides/1167292#1167292" target="_blank">answer</a>.</p>
<p style="text-align:justify;">The other interesting things, I learned was to use the <a title="QT4 Designer" href="http://doc.trolltech.com/4.0/qt4-designer.html" target="_blank">qt-designer </a>tool for creating gui. It is a nice <a title="WYSIWYG" href="http://en.wikipedia.org/wiki/WYSIWYG" target="_blank">WYSIWYG</a> tool for designing complex guis. The configuration form is designed using this tool. The qt-designer creates a .ui file, which is an xml file. The .ui file can be converted to the python source code using the pyuic4 tool in the following way.</p>
<pre class="brush: bash;">
pyuic4 -o configForm_ui.py ../ui/configForm.ui
</pre>
<p style="text-align:justify;">I also learned to use the .qrc file for resources like images. The .qrc file can be converted into python source code using  pyrcc4 tool</p>
<pre class="brush: bash;">
pyrcc4 -o images_rc.py images.qrc
</pre>
<p style="text-align:justify;">
<p style="text-align:justify;">The qrc file is also an xml file which contains the references to the images used. It can be created by just editing.</p>
<pre class="brush: xml;">
&lt;RCC&gt;
    &lt;qresource prefix=&quot;/images&quot;&gt;
        &lt;file alias=&quot;sunny.svgz&quot;&gt;../images/sunny.svgz&lt;/file&gt;
        &lt;file alias=&quot;showers.svgz&quot;&gt;../images/showers.svgz&lt;/file&gt;
        &lt;file alias=&quot;not-available.svgz&quot;&gt;../images/not-available.svgz&lt;/file&gt;
        &lt;file alias=&quot;cloudy.svgz&quot;&gt;../images/cloudy.svgz&lt;/file&gt;
        &lt;file alias=&quot;thunderstorms.svgz&quot;&gt;../images/thunderstorms.svgz&lt;/file&gt;
        &lt;file alias=&quot;haze.svgz&quot;&gt;../images/haze.svgz&lt;/file&gt;
        &lt;file alias=&quot;windy.svgz&quot;&gt;../images/windy.svgz&lt;/file&gt;
    &lt;/qresource&gt;
&lt;/RCC&gt;
</pre>
<p style="text-align:justify;">I decided to write this weather plasmoid in python, because all the other weather plasmoids I found were binaries. I have also tried to keep the data and presentation layer separate, I hope I succeeded in that.  In fact plasma framework provides a very good way of doing that in terms of <a title="Data Engines" href="http://techbase.kde.org/Development/Tutorials/Plasma/Python/Using_DataEngines" target="_blank">data engines</a>. I would also like to use the data engines, may be with this or other plasmoid I may develop.</p>
<p style="text-align:justify;">The svg images for weather conditions are taken from kde-look. The credit goes to the original artist, painkiller10. I have considered only a number of weather conditions, so If you see a question mark image as the weather condition, let me know which condition it is, so I can update the code to consider it.</p>
<p style="text-align:justify;">Please feel free to report any bugs or suggestions for improvement. I am sure there is a big room of improvement from code point of view as well as functionality. I am also open for changing the layout or changing the information displayed if someone comes with a better suggestion than the current one.</p>
<p style="text-align:justify;"><strong>Some more screen shots:</strong></p>
<p style="text-align:justify;"><strong> </strong></p>
<div id="attachment_493" class="wp-caption aligncenter" style="width: 682px"><strong><strong><img class="size-full wp-image-493" title="wplasmoid_seamless-tmb" src="http://hardikmehta.wordpress.com/files/2009/08/wplasmoid_seamless-tmb1.png" alt="Looks almost like conky with the seamless theme." width="672" height="420" /></strong></strong><p class="wp-caption-text">Looks almost like conky with the seamless theme.</p></div>
<p><strong> </strong></p>
<div id="attachment_460" class="wp-caption aligncenter" style="width: 710px"><img class="size-full wp-image-460" title="wplasmoid_settings" src="http://hardikmehta.wordpress.com/files/2009/08/wplasmoid_settings.png" alt="wplasmoid_settings" width="700" height="359" /><p class="wp-caption-text">With settings dialog box</p></div>
<p style="text-align:center;">
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[kde4 (qt4) и внешний вид приложений написанных на gtk и wxWidgets]]></title>
<link>http://hakushka.wordpress.com/2009/08/10/kde4-qt4-gtk-in-linux/</link>
<pubDate>Mon, 10 Aug 2009 03:43:56 +0000</pubDate>
<dc:creator>haku</dc:creator>
<guid>http://hakushka.wordpress.com/2009/08/10/kde4-qt4-gtk-in-linux/</guid>
<description><![CDATA[Немного к вопросу о интеграции рабочих столов. Есть мнение, что пользователям kde не раз приходилось]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><img class="alignleft size-full wp-image-80" title="qt4" src="http://hakushka.wordpress.com/files/2009/08/qt4.png" alt="qt4" /><img class="alignleft size-full wp-image-81" title="Gtk-logo" src="http://hakushka.wordpress.com/files/2009/08/gtk-logo.gif" alt="Gtk-logo" /></p>
<p>Немного к вопросу о интеграции рабочих столов.<br />
Есть мнение, что пользователям <strong>kde</strong> не раз приходилось испытывать чувство недоумения, запуская что-либо написанное на <strong>GTK</strong>: как же оно убого, чужеродно выглядит &#8212; эти квадратные, режущие глаз панели, цвета, иконки&#8230;  никакой гармонии.<br />
Так как же заставить нормально отображаться <strong>gtk</strong>-приложения? Да и почему собственно только <strong>gtk</strong> &#8212; есть же и <strong>wxwidgets</strong>. На самом деле всё не так уж и сложно, приступим:</p>
<blockquote><p><code># emerge layman<br />
# echo "source /usr/local/portage/layman/make.conf" &#62;&#62; /etc/make.conf<br />
# layman -a kde-testing<br />
# echo "x11-themes/gtk-engines-kde4" &#62;&#62; /etc/portage/package.keywords<br />
# emerge x11-themes/gtk-engines-kde4</code></p></blockquote>
<p><img class="alignright" title="wxWidgets_logo" src="http://hakushka.wordpress.com/files/2009/08/wxwidgets_logo.jpg" alt="wxWidgets_logo" /><br />
<!--more--><br />
Что нам это даёт? В параметрах системы появляется новый пункт меню <strong>&#8220;Стиль GTK&#8221;:</strong></p>
<p><a href="http://hakushka.wordpress.com/files/2009/08/gtk-kde-config.png"><img class="aligncenter size-full wp-image-86" title="gtk-kde-config" src="http://hakushka.wordpress.com/files/2009/08/gtk-kde-config.png" alt="gtk-kde-config" width="700" height="512" /></a><br />
Тут главное жмякнуть на &#8220;применить&#8221;, и не забывать повторять это после каждой смены темы в <strong>kde4</strong>. Почувствуйте разницу, до:</p>
<p><a href="http://hakushka.wordpress.com/files/2009/08/mmg-gtk.png"><img class="aligncenter size-full wp-image-88" title="mmg-gtk" src="http://hakushka.wordpress.com/files/2009/08/mmg-gtk.png" alt="mmg-gtk" width="700" height="682" /></a></p>
<p>И после:<br />
<a href="http://hakushka.wordpress.com/files/2009/08/mmg-gtk-kde4.png"><img class="aligncenter size-full wp-image-89" title="mmg-gtk-kde4" src="http://hakushka.wordpress.com/files/2009/08/mmg-gtk-kde4.png" alt="mmg-gtk-kde4" width="700" height="685" /></a></p>
<p><strong><span style="text-decoration:underline;">Вывод:</span></strong> теперь ваши любимые приложения, к примеру <span style="text-decoration:underline;">FireFox</span>, <span style="text-decoration:underline;">EasyTag</span> (<strong>gtk</strong>), либо <span style="text-decoration:underline;">mkvtoolnix</span> (гуй на <strong>wxwidgwts</strong>) выглядят просто отлично, что собственно и хотелось увидеть. Прощай унылый гуй, даёшь красоту! Эстеты ликуют.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[QSynergy, multi-platform(Qt4) synergy client.]]></title>
<link>http://lum7671.wordpress.com/2009/08/05/qsynergy-multi-platformqt4-synergy-client/</link>
<pubDate>Wed, 05 Aug 2009 09:54:54 +0000</pubDate>
<dc:creator>lum7671</dc:creator>
<guid>http://lum7671.wordpress.com/2009/08/05/qsynergy-multi-platformqt4-synergy-client/</guid>
<description><![CDATA[오늘 Synergy클라이언트인 QSynergy 를 발견했습니다. 리눅스에서 KSynergy와 QuickSynergy를 사용했었는데요. 우연히 KSynergy의 답글에서 QSyner]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>오늘 <a href="http://synergy2.sourceforge.net/">Synergy</a>클라이언트인  <a href="http://www.volker-lanz.de/en/software/qsynergy/">QSynergy</a> 를 발견했습니다.<br />
리눅스에서 <a href="http://www.kde-apps.org/content/show.php?content=44538">KSynergy</a>와 <a href="http://code.google.com/p/quicksynergy/">QuickSynergy</a>를 사용했었는데요.<br />
우연히 <a href="http://www.kde-apps.org/content/show.php?content=44538">KSynergy</a>의 답글에서 <a href="http://www.volker-lanz.de/en/software/qsynergy/">QSynergy</a>를 발견하고 설치를 해봤는데 맘에 쏙 듭니다.<br />
QuickSynergy의 경우는 $HOME/.synergy.conf 과 같이 vim와 같은 에디터로 마음껏 수정을 할 수 있는 여지를 없앴다는게 가장 큰 불만이었고, <a href="http://www.kde-apps.org/content/show.php?content=44538">KSynergy</a>는 간단해서 좋으나 기능이 떨어지고 KDE3라는 구버전이라는 점이 맘에 걸렸습니다.<br />
<a href="http://www.volker-lanz.de/en/software/qsynergy/">QSynergy</a>는 Qt4버전으로 KDE4와도 궁합이 잘 맞는것 같습니다.<br />
그리고, $HOME/.synergy.conf 와 같은 기존의 설정파일로 가동도 되고 비주얼하게 설정도 가능합니다.<br />
(개인적으로 리눅스를 synergy서버로 사용해서 &#8220;$HOME/.synergy.conf&#8221; 를 좋아해서 비주얼한것은 테스트 못해봤습니다.) </p>
<p>이로써, 윈도즈는 Synergy에서 제공하는 오리지널 GUI프로그램을 사용하고<br />
맥에서는 SynergyKM을 사용하고<br />
리눅스에서는 <a href="http://www.volker-lanz.de/en/software/qsynergy/">QSynergy</a>를 사용하게 되었습니다.</p>
<p>리눅스에서 어색하지 않은 트레이 아이콘과 번개표시로 &#8220;작동됨&#8221;이 표시되니 기분이 좋네요. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>

</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Subcommander Status..]]></title>
<link>http://subcommanderblog.wordpress.com/2009/08/02/subcommander-status/</link>
<pubDate>Sun, 02 Aug 2009 13:52:58 +0000</pubDate>
<dc:creator>hauner</dc:creator>
<guid>http://subcommanderblog.wordpress.com/2009/08/02/subcommander-status/</guid>
<description><![CDATA[Hi, It looks like I&#8217;m currently (currently!?) losing a bit track of things in Subcommander dev]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Hi,</p>
<p style="text-align:justify;">It looks like I&#8217;m <span>currently (currently!?) losing a bit track of things in Subcommander development&#8230; <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </span></p>
<p style="text-align:justify;"><span>I tried to upgrade from Qt 4.4 to Qt 4.5. Bam, a couple of (my few) tests for the custom QAbstractItemModel (which is the base for the working copy display) don&#8217;t run anymore. The working copy view</span> now crashes randomly. Great. Unfortunately I have so few test for the model, that I&#8217;m sure I will break other things trying to fix the broken tests. I&#8217;ve already wasted a lot of time debugging that code in the past with all the QModelIndex objects you can&#8217;t look into. I don&#8217;t want to waste more time on this&#8230;.</p>
<p style="text-align:justify;">So I took another step back (moving the proxy model into the TODO list again) and started another round on the QAbstractItemModel stuff. I&#8217;m now trying to TDD the model into existence. This is going a bit slow because I &#8216;m still a beginner at TDD. But I have about 20 tests around the new custom model implementation now and slowly it begins to do something.. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align:justify;">So far I always used cppunit to write tests. I think I&#8217;m going to drop it in favor of gtest/gmock. Allthough gmock does work together with cppunit, it is simpler and faster for me to create new tests with gtest instead of cppunit. With cppunit I always had a header and a implementation file. With gtest I just need an implementation file. This is a <strong>lot</strong> easier. Maybe this would work with cppunit too, but since gmock includes gtest anyway I have one dependency less to care for (just gmock instead of cppunit &#38; gmock).</p>
<p style="text-align:justify;">Another big issue that keeps me from making real progress is the maintainability of 3 build environments. Another time waster. I&#8217;m considering to move to qmake as the build environment and to drop the hand made configure/XCode/Visual Studio builds.</p>
<p style="text-align:justify;">I also wonder if it wouldn&#8217;t be a lot easier to drop Visual Studio completely and use MinGW to build Subcommander on Windows. That way I would more or less use the same build environment (gcc and friends) on all the three platforms (Mac/Linux/Windows). This should improve maintainability as well.</p>
<p style="text-align:justify;">So I&#8217;m still working on Subcommander, but I can&#8217;t tell when there will be a new release&#8230; but maybe I&#8217;m the only Subcommander  user anyway&#8230; <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Релиз smplayer 0.6.8 -- лучшее враг хорошего]]></title>
<link>http://hakushka.wordpress.com/2009/07/29/release-smplayer-0-6-8/</link>
<pubDate>Wed, 29 Jul 2009 20:07:00 +0000</pubDate>
<dc:creator>haku</dc:creator>
<guid>http://hakushka.wordpress.com/2009/07/29/release-smplayer-0-6-8/</guid>
<description><![CDATA[Сегодня (наверно после полугодового затишья) обновилась одна им самых удобных надстроек над mplayer.]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><img class="alignleft size-full wp-image-52" title="SMPlayer_icon" src="http://hakushka.wordpress.com/files/2009/07/smplayer_icon.png" alt="SMPlayer" />Сегодня (наверно после полугодового затишья) обновилась одна им самых удобных надстроек над <strong>mplayer</strong>.</p>
<p>Для тех кто в танке &#8211; <strong>SMPlayer</strong> представляет собой полноценную графическую оболочку для <strong>mplayer</strong>, обеспечивающую как базовые функции <strong>mp</strong><strong>layer</strong> (воспроизведение видео, DVD и VCD), так и более продвинутые (поддержка фильтров и прочее).  Одной из наиболее интересных возможностей <strong>SMPlayer</strong> разработчики называют функцию запоминания настроек всех воспроизводимых файлов (звуковая дорожка, субтитры, громкость).</p>
<p>Кроме внушительного списка исправленных недочётов, присутствуют некоторые новые &#8220;фишки&#8221;, а именно:</p>
<ul>
<li> Новая фишка: при нажатии <strong>Shift+D</strong> каждый воспроизведённый кадр будет сохранён в домашнюю папку пользователя (по умолчанию, настраиваться) в <strong>png</strong> формате, пока эта комбинация не будет активирована вновь. Теперь не нужно &#8220;ловить&#8221; интересный кадр с секундомером или играть с параметром &#8220;скорость воспроизведения&#8221;.</li>
<li> новая глобальная (перекрывающая классическое управление) опция &#8220;отображать субтитры&#8221; в одноимённом пункте меню &#8212; субтитроненавистники ликуют <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<!--more--></li>
<li> первоначальная поддержка <strong>TV</strong> (<strong>dvb://</strong> и <strong>tv://</strong>),  добавлен новый раздел в диалоге параметров, новые хоткеи для быстрого переключения каналов (<strong>L</strong> и <strong>H</strong> (для ТВ) и <strong>Shift + L</strong> и <strong>Shift + H</strong> для радио), просмотр свойств потока (ctrl+i), а так же настройка кэша для этих новых фишек. Привет kaffeine.<a href="http://hakushka.wordpress.com/files/2009/07/tv.png"><img class="aligncenter size-full wp-image-46" title="tv" src="http://hakushka.wordpress.com/files/2009/07/tv.png" alt="tv" width="515" height="422" /></a></li>
<li> новые костыли для синхронизации аудио и видео (чесно говоря мне ещё ниразу не доводилось пользоваться)</li>
<li>если <strong>vdpau</strong> не используеться для вывода видео, и не указан другой кодек, разрешить использовать несвободный <strong>coreavс</strong>. Требует собранного с соответствующей опцией <strong>mplayer</strong>-а.<br />
<a href="http://hakushka.wordpress.com/files/2009/07/tv2.png"><img class="aligncenter size-full wp-image-47" title="tv2" src="http://hakushka.wordpress.com/files/2009/07/tv2.png" alt="tv2" width="700" height="443" /></a></li>
<li>добавлены соотношения сторон (<strong>3:2</strong> и <strong>14:10</strong>), а так же их правильная сортировка в меню.</li>
<li>задавать задержку субтитров и звука вручную теперь можно даже тогда, когда воспроизведение приостановлено (пауза).</li>
</ul>
<p><a href="http://hakushka.wordpress.com/files/2009/07/tv3.png"><img class="aligncenter size-full wp-image-48" title="tv3" src="http://hakushka.wordpress.com/files/2009/07/tv3.png" alt="tv3" width="700" height="447" /></a></p>
<p>Вобщем релиз получился довольно интересным, щедрым как на баг-фиксы так и на новые фишки. Отличный плеер становиться ещё лучше. Обновляемся =)</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Opera 10 beta 2 y Qt 4]]></title>
<link>http://morningsviews.wordpress.com/2009/07/23/opera-10-beta-2-y-qt-4/</link>
<pubDate>Thu, 23 Jul 2009 17:29:49 +0000</pubDate>
<dc:creator>paran0id</dc:creator>
<guid>http://morningsviews.wordpress.com/2009/07/23/opera-10-beta-2-y-qt-4/</guid>
<description><![CDATA[Como todos ya sabrán Opera 10 beta 2 está disponible para su descarga, lo malo es que si usas KDE 4,]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:justify;">Como todos ya sabrán Opera 10 beta 2 está disponible para su descarga, lo malo es que si usas KDE 4, la opción de descarga es la versión Qt 3 por lo que si lo instalas en KDE 4 queda horrible.</p>
<p style="text-align:justify;">Pues bien, para tener el navegador con versión Qt 4 nos vamos a la siguiente <strong><a href="http://get.opera.com/pub/opera/linux/1000b2/beta2/en/" target="_blank">página</a></strong>, seleccionamos nuestra arquitectura (i386&#8230;) y buscamos el paquete para nuestra distribución, Fedora o Ubuntu (también está disponible en archivo .tar.gz y .tar.bz2).</p>
<p style="text-align:justify;">Para los vagos aquí dejo los enlaces para Fedora:</p>
<p style="text-align:justify;"><strong>i386:</strong> <a href="http://get.opera.com/pub/opera/linux/1000b2/beta2/en/i386/opera-10.00-b2.gcc4.qt4.i386.rpm">http://get.opera.com/pub/opera/linux/1000b2/beta2/en/i386/opera-10.00-b2.gcc4.qt4.i386.rpm</a></p>
<p style="text-align:justify;"><strong>x86_64:</strong> <a href="http://get.opera.com/pub/opera/linux/1000b2/beta2/en/i386/opera-10.00-b2.gcc4.qt4.i386.rpm">http://get.opera.com/pub/opera/linux/1000b2/beta2/en/x86_64/opera-10.00-b2.gcc4.qt4.x86_64.rpm</a></p>
<p style="text-align:justify;">Ahora solo queda abrir/guardar e instalar; y nos quedará una cosa así de bien <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p style="text-align:justify;">
<div id="attachment_89" class="wp-caption aligncenter" style="width: 310px"><a href="http://morningsviews.wordpress.com/files/2009/07/instantaneakde4-9.png"><img class="size-medium wp-image-89" title="instantáneaKDE4-9" src="http://morningsviews.wordpress.com/files/2009/07/instantaneakde4-9.png?w=300" alt="Ahora sí que se ve bien." width="300" height="209" /></a><p class="wp-caption-text">Ahora sí que se ve bien.</p></div>
<p style="text-align:justify;">
<p style="text-align:justify;">Pongo solo los enlaces para Fedora porque es lo que estoy utilizando ahora mismo xD así que los de K/Ubuntu, a buscarse la vida.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Benchmarking on C++ and Qt4]]></title>
<link>http://ankit17.wordpress.com/2009/07/22/benchmarking-on-c-and-qt4/</link>
<pubDate>Wed, 22 Jul 2009 11:27:35 +0000</pubDate>
<dc:creator>Ankit Agarwal</dc:creator>
<guid>http://ankit17.wordpress.com/2009/07/22/benchmarking-on-c-and-qt4/</guid>
<description><![CDATA[I came up with a idea of cross checking my knowledge about Vectors and Lists. So, I started off with]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I came up with a idea of cross checking my knowledge about Vectors and Lists. So, I started off with Qt&#8217;s QList and QVector. I created a QList and QVector of 50000 object of another class and then iterated each with &#8216;for&#8217; loop and &#8216;foreach&#8217; loop separately. Initially my intentions were to study the time being taken by both kind of loops but I ended up studying Lists and Vectors.</p>
<p>What I found out was &#8216;foreach&#8217; loop takes more time than plain &#8216;for&#8217; loop but for this also the time taken for traversing QList is far lesser than for QVector. I though that this might be because of some internal problem with Qt4.2 or with my system&#8217;s configuration. Thus, I re-wrote the code using STL List and Vector. I was surprised to see same result as I got for the QList and QVector.</p>
<p>Thus, I fially though of trying out my code in some other system but I got the same result. Still, I can&#8217;t understand the reason for this behavior.</p>
<p>You can get my code below :</p>
<p>example.h</p>
<blockquote><p>#include &#60;QtGui&#62;<br />
#include &#60;QtCore&#62;</p>
<p>#define MAX 900000</p>
<p>class Test<br />
{<br />
public:<br />
QString name;<br />
quint32 eid;<br />
QString address;<br />
Test(QString name, quint32 eid, QString address);<br />
Test();<br />
};</p>
<p>class Example<br />
{<br />
public:<br />
Example();<br />
};</p>
<p>class Example2<br />
{<br />
public:<br />
Example2();<br />
};</p></blockquote>
<p>example.cpp</p>
<blockquote><p>#include &#8220;example.h&#8221;</p>
<p>Example::Example()<br />
{<br />
QList&#60;Test&#62; list;<br />
QVector&#60;Test&#62; vector(50000);<br />
qDebug()&#60;&#60;&#8221;starting Example&#8221;;</p>
<p>QTime currTime = QTime::currentTime();<br />
for(quint32 i = 0; i &#60; 50000; ++i)<br />
{<br />
Test test(QString(&#8220;asasasasas&#8221;), i, QString(&#8220;aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&#8221;));<br />
list.append(test);<br />
}<br />
qDebug()&#60;&#60;&#8221;time taken for appending in list= &#8220;&#60;&#60; currTime.msecsTo(QTime::currentTime());</p>
<p>currTime = QTime::currentTime();<br />
for(quint32 i = 0; i &#60; 50000; ++i)<br />
{<br />
Test test(QString(&#8220;asasasasas&#8221;), i, QString(&#8220;aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&#8221;));<br />
vector.append(test);<br />
}<br />
qDebug()&#60;&#60;&#8221;time taken for appending in vector = &#8220;&#60;&#60; currTime.msecsTo(QTime::currentTime());<br />
Test temp;<br />
currTime = QTime::currentTime();<br />
foreach(temp, list)<br />
{<br />
Test temp2 = temp;<br />
}<br />
qDebug()&#60;&#60;&#8221;foreach list = &#8220;&#60;&#60; currTime.msecsTo(QTime::currentTime());</p>
<p>QList&#60;Test&#62;::iterator it;<br />
currTime = QTime::currentTime();<br />
for(it = list.begin(); it != list.end(); ++it)<br />
{<br />
Test temp2 = *it;<br />
}<br />
qDebug()&#60;&#60;&#8221;for list = &#8220;&#60;&#60; currTime.msecsTo(QTime::currentTime());</p>
<p>quint32 size = list.size();<br />
currTime = QTime::currentTime();<br />
for(quint32 i = 0; i &#60; size; ++i)<br />
{<br />
//Test temp2 = list.at(i);<br />
Test temp2 = list[i];<br />
}<br />
qDebug()&#60;&#60;&#8221;for \&#8221;i\&#8221; list = &#8220;&#60;&#60; currTime.msecsTo(QTime::currentTime());</p>
<p>currTime = QTime::currentTime();<br />
foreach(temp, vector)<br />
{<br />
Test temp2 = temp;<br />
}<br />
qDebug()&#60;&#60;&#8221;foreach vector = &#8220;&#60;&#60; currTime.msecsTo(QTime::currentTime());</p>
<p>QVector&#60;Test&#62;::iterator iter;<br />
currTime = QTime::currentTime();<br />
for(iter = vector.begin(); iter != vector.end(); ++iter)<br />
{<br />
Test temp2 = *iter;<br />
}<br />
qDebug()&#60;&#60;&#8221;for vector = &#8220;&#60;&#60; currTime.msecsTo(QTime::currentTime());</p>
<p>size = vector.size();<br />
currTime = QTime::currentTime();<br />
for(quint32 i = 0; i &#60; size; ++i)<br />
{<br />
//Test temp2 = vector.at(i);<br />
Test temp2 = vector[i];<br />
}<br />
qDebug()&#60;&#60;&#8221;for \&#8221;i\&#8221; vector = &#8220;&#60;&#60; currTime.msecsTo(QTime::currentTime());</p>
<p>}</p></blockquote>
<p>example2.cpp</p>
<blockquote><p>#include &#8220;example.h&#8221;<br />
#include &#60;vector.h&#62;<br />
#include &#60;list.h&#62;</p>
<p>Test::Test(QString name, quint32 eid, QString address)<br />
{<br />
this-&#62;name = name;<br />
this-&#62;eid = eid;<br />
this-&#62;address = address;<br />
}</p>
<p>Test::Test()<br />
{<br />
}</p>
<p>Example2::Example2()<br />
{<br />
list&#60;Test&#62; testList;<br />
vector&#60;Test&#62; testVector;<br />
Test testArray[MAX];</p>
<p>QTime currTime = QTime::currentTime();<br />
for(int i = 0; i &#60; MAX; ++i)<br />
{<br />
Test temp(QString(&#8220;asasasasas&#8221;), i, QString(&#8220;aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&#8221;));<br />
testList.push_back(temp);<br />
}<br />
qDebug()&#60;&#60;&#8221;time taken for appending in list= &#8220;&#60;&#60; currTime.msecsTo(QTime::currentTime());</p>
<p>currTime = QTime::currentTime();<br />
for(quint32 i = 0; i &#60; MAX; ++i)<br />
{<br />
Test test(QString(&#8220;asasasasas&#8221;), i, QString(&#8220;aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&#8221;));<br />
testVector.push_back(test);<br />
}<br />
qDebug()&#60;&#60;&#8221;time taken for appending in vector = &#8220;&#60;&#60; currTime.msecsTo(QTime::currentTime());</p>
<p>currTime = QTime::currentTime();<br />
for(quint32 i = 0; i &#60; MAX; ++i)<br />
{<br />
Test test(QString(&#8220;asasasasas&#8221;), i, QString(&#8220;aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&#8221;));<br />
testArray[i] = test;<br />
}<br />
qDebug()&#60;&#60;&#8221;time taken for appending in Array = &#8220;&#60;&#60; currTime.msecsTo(QTime::currentTime());</p>
<p>currTime = QTime::currentTime();<br />
list&#60;Test&#62;::iterator itList;<br />
for(itList = testList.begin(); itList != testList.end(); ++itList)<br />
{<br />
Test temp2 = *itList;<br />
}<br />
qDebug()&#60;&#60;&#8221;for loop List = &#8220;&#60;&#60; currTime.msecsTo(QTime::currentTime());</p>
<p>currTime = QTime::currentTime();<br />
vector&#60;Test&#62;::iterator itVector;<br />
for(itVector = testVector.begin(); itVector != testVector.end(); ++itVector)<br />
{<br />
Test temp2 = *itVector;<br />
}<br />
qDebug()&#60;&#60;&#8221;for loop Vector = &#8220;&#60;&#60; currTime.msecsTo(QTime::currentTime());</p>
<p>currTime = QTime::currentTime();<br />
for(int i = 0 ; i &#60; MAX; ++i)<br />
{<br />
Test temp2 = testArray[i];<br />
}<br />
qDebug()&#60;&#60;&#8221;for loop Array = &#8220;&#60;&#60; currTime.msecsTo(QTime::currentTime());<br />
}</p></blockquote>
<p>main.cpp</p>
<blockquote><p>#include &#60;QApplication&#62;<br />
#include &#60;example.h&#62;</p>
<p>int main(int argc, char* argv[])<br />
{<br />
QApplication app(argc, argv);<br />
Example ex1;</p>
<p>Example2 ex2;</p>
<p>return app.exec();<br />
}</p></blockquote>
<p>var infolink_pid = 46981;</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[k3b и KDE4 -- дождались?]]></title>
<link>http://hakushka.wordpress.com/2009/07/21/k3b-and-kde4-beta2/</link>
<pubDate>Tue, 21 Jul 2009 19:19:42 +0000</pubDate>
<dc:creator>haku</dc:creator>
<guid>http://hakushka.wordpress.com/2009/07/21/k3b-and-kde4-beta2/</guid>
<description><![CDATA[Запись CD/DVD пожалуй будет актуальна ещё довольно длительное время. Конечно флеш-память неплохой ко]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><img class="alignleft size-full wp-image-29" title="3d_logo k3b" src="http://hakushka.wordpress.com/files/2009/07/3d_logo.png" alt="k3b" /> Запись CD/DVD пожалуй будет актуальна ещё довольно длительное время. Конечно флеш-память неплохой конкурент классическим болванкам, особенно когда есть необходимость перенести информацию на удалённый, отключённый от сети компьютер; но есть области где болванки ещё &#8220;живее всех живых&#8221;. Да и стоимость хранения гигабайта информации на флешке в сравнении с DVD-RW пока не соизмерима.</p>
<p>Олд-скульный юниксоид, возможно увидев название <strong>k3b</strong> поморщиться и скажет что &#8220;мышиная кликомания удел офисного планктона из (чур не пинать) мира windows&#8221;. Что-ж, это его мнение. А мы попробуем вторую альфу гуёвой обёртки для записи дисков, итак приступим:</p>
<blockquote><p><code># emerge layman<br />
# echo "source /usr/local/portage/layman/make.conf" &#62;&#62; /etc/make.conf<br />
# layman -a kde-testing<br />
# echo "app-cdr/k3b" &#62;&#62; /etc/portage/package.keywords<br />
# emerge app-cdr/k3b</code></p></blockquote>
<p><!--more--><br />
<a href="http://hakushka.wordpress.com/files/2009/07/k3b_06.png"><img class="aligncenter size-full wp-image-37" title="k3b_06" src="http://hakushka.wordpress.com/files/2009/07/k3b_06.png" alt="k3b_06" width="416" height="436" /></a><br />
Вот он, второй билд для <strong>KDE4</strong> =)</p>
<p><a href="http://hakushka.wordpress.com/files/2009/07/k3b_01.png"><img class="aligncenter size-full wp-image-31" title="k3b_01" src="http://hakushka.wordpress.com/files/2009/07/k3b_01.png" alt="k3b_01" width="700" height="628" /></a></p>
<p>Подвернувшаяся под руку <strong>rw</strong>-шка с бубунтой определяеться нормально.</p>
<p><strong>Hint!</strong> Чтоб программа могла общаться с устройством чтения/записи дисков, не забываем добавить пользователя в соотвествующие группы:</p>
<blockquote><p><code>usermod -aG cdrom haku<br />
usermod -aG cdrw haku</code></p></blockquote>
<p><a href="http://hakushka.wordpress.com/files/2009/07/k3b_02.png"><img class="aligncenter size-full wp-image-32" title="k3b_02" src="http://hakushka.wordpress.com/files/2009/07/k3b_02.png" alt="k3b_02" width="456" height="476" /></a></p>
<p>Интересности начинаются с форматирования диска, <strong>k3b</strong> удивляется &#8212; а нафиг что-то форматировать, просто перезаписывай да и всё =) Придумано бесспорно красиво.</p>
<p><a href="http://hakushka.wordpress.com/files/2009/07/k3b_03.png"><img class="aligncenter size-full wp-image-33" title="k3b_03" src="http://hakushka.wordpress.com/files/2009/07/k3b_03.png" alt="k3b_03" width="652" height="640" /></a></p>
<p>Процесс записи ISO образа. Ничего экстраординарного кроме бага с отображением именем автора нет, думаю в релизе поправят. Непринципиальная мелочь.</p>
<p><a href="http://hakushka.wordpress.com/files/2009/07/k3b_04.png"><img class="aligncenter size-full wp-image-35" title="k3b_04" src="http://hakushka.wordpress.com/files/2009/07/k3b_04.png" alt="k3b_04" width="652" height="640" /></a></p>
<p>Проверка записанного.</p>
<p><a href="http://hakushka.wordpress.com/files/2009/07/k3b_05.png"><img class="aligncenter size-full wp-image-36" title="k3b_05" src="http://hakushka.wordpress.com/files/2009/07/k3b_05.png" alt="k3b_05" width="652" height="640" /></a><br />
Всё окей, проблем на первый взгляд нет.</p>
<p>Вердикт &#8212; пользоваться можно <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>P.S. </strong>Есть интересная байка о названии программы,когда она ещё была под <strong>qt3</strong> получалось что <strong>k3b</strong> = bbb = &#8220;Burn, baby,  burn!&#8221; , в таком случае версию для <strong>qt4</strong> предлагали назвать <strong>k4b</strong> = bbbb = &#8220;burn baby, burn better!&#8221; ^_^ Правда авторы утверждают, что тройка в названи программы не от версии qt(3), а от количества букв <strong>k, </strong>верить или нет личное дело каждого.</p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
