QtRuby是跨平台的应用程序框架Qt的Ruby綁定版本,包含Qt4和Qt3支持。也是Korundum(KDE API的Ruby綁定)的基礎。
QtRuby使用SMOKE提供语言綁定基礎
除了Linux和Unix,QtRuby也支持Mac OS X操作系統和微軟Windows。
QtRuby的hello world
require 'Qt4'
app = Qt::Application.new (ARGV)
hello = Qt::PushButton.new ('Hello World!')
hello.resize (100, 30)
hello.show()
app.exec()
外部連結
*[irc://irc.freenode.net/qtruby #qtruby]
*[https://mail.kde.org/mailman/listinfo/kde-bindings QtRuby郵件列表]
- [http://www.darshancomputing.com/qt4-qtruby-tutorial/ Qt®4 Tutorial for the Ruby Programming Language] - QtRuby教學
- [https://web.archive.org/web/20090317091453/http://vision.eng.shu.ac.uk/mmvlwiki/index.php/Qt4-QtRuby_installer_for_Microsoft_Windows Qt4-QtRuby installer for Microsoft Windows]
- [http://techbase.kde.org/Development/Languages/Ruby (zh_CN)| KDE TechBase上的QtRuby資料]
- [http://techbase.kde.org/Development/Languages/Ruby (zh_TW)| KDE TechBase上的QtRuby資料]
评论 (0)