<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: qt code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Sat, 26 Jul 2008 17:04:40 GMT</pubDate>
    <description>DZone Snippets: qt code</description>
    <item>
      <title>A QT 'Hello World' application</title>
      <link>http://snippets.dzone.com/posts/show/5253</link>
      <description>- getting started - (Using Ubuntu Linux 7.10)&lt;br /&gt;1) Installed Qt bindings for Ruby &lt;br /&gt;&lt;br /&gt;- Running the application&lt;br /&gt;1) From the command line I typed ruby helloworld_qt.rb&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;#file: helloworld_qt.rb&lt;br /&gt;&lt;br /&gt;require 'Qt'&lt;br /&gt;&lt;br /&gt;    a = Qt::Application.new( ARGV )&lt;br /&gt;&lt;br /&gt;    hello = Qt::PushButton.new( "Hello world!", nil )&lt;br /&gt;    hello.resize( 100, 30 )&lt;br /&gt; &lt;br /&gt;    Qt::Object::connect( hello, SIGNAL('clicked()'), a, SLOT('quit()') )&lt;br /&gt; &lt;br /&gt;    a.setMainWidget( hello )&lt;br /&gt;    hello.show()&lt;br /&gt; &lt;br /&gt;    a.exec()&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Source code copied from  &lt;a href="http://developer.kde.org/language-bindings/ruby/kde3tutorial/p1.html"&gt;KDE Tutorial - p1&lt;/a&gt; [kde.org]</description>
      <pubDate>Wed, 19 Mar 2008 09:21:33 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5253</guid>
      <author>jrobertson (James Robertson)</author>
    </item>
  </channel>
</rss>
