Wednesday, June 10, 2009

QtWebkit practice with QtRuby

I wrote QtWebKit sample program with Qt in phosphorescence: QtWebKit practice. Next, let's write corresponding program with QtRuby.
require 'Qt4'
require 'qtwebkit'

Qt::Application.new(ARGV) do
Qt::WebView.new do
self.load Qt::Url.new('http://www.wolframalpha.com/')
show
end
exec
end

Then run, succeed.

1 comment:

Unknown said...

nice example, I come to this page every time when I forget how to use Ruby QtWebkit

Post a Comment