1. Requirements
Qt 4.6.x
cmake 2.6.3+
gcc 4.x
Ruby
2. Install qtbindings.
$ gem install qtbindings
2
Building native extensions. This could take a while...
3
Successfully installed qtbindings-4.6.3.2
4
1 gem installed
5
Installing ri documentation for qtbindings-4.6.3.2...
6
Installing RDoc documentation for qtbindings-4.6.3.2...
3. Test.
01
$ irb
02
ruby-1.9.2-p180 :001 > require 'Qt'
03
=> true
04
ruby-1.9.2-p180 :002 > a = Qt::Application.new(ARGV)
05
=> #<qt::application:0x88743dc objectname="irb">
06
ruby-1.9.2-p180 :003 > button = Qt::PushButton.new('Hello World!',nil)
07
=> #<qt::pushbutton:0x8a04db4 objectname="" ,="" x="0," y="0," width="640," height="480">
08
ruby-1.9.2-p180 :004 > button.resize(300,30)
09
=> nil
10
ruby-1.9.2-p180 :005 > button.show()
11
=> nil
12
ruby-1.9.2-p180 :006 > a.exec()
13
</qt::pushbutton:0x8a04db4></qt::application:0x88743dc>
5. Resouces.
RubyGems.org: http://rubygems.org/gems/qtbindings
QtBindings Homepage: https://github.com/ryanmelt/qtbindings
Qt Homepage: http://qt.nokia.com/
分享到:
相关推荐
安装mumax3最全教程
2 Installing Qt SDK on X86 Linux 3 Installing Qt Everywhere on a Linux host 3.1 Install and build tslib 3.2 Install Qt Everywhere on a Linux Host 3.3 Install Qt Everywhere 4.6.3 fonts and ...
For a oracle enviroment without SAP, the backup can also done by brtools.
Installing STLinux on Ubuntu
Ubuntu-10.04环境下安装 ns2 2.34
ESP-IDF环境安装文件,含esp-idf-v4.0.1资源包、Git-2.35.1.2-64-bit安装包、python-3.7
Installing sgcWebSockets in Rad Studio 7 - XE8 - 10.2 Tokyo --------------------------------------------------------------------------------------------------------------------------------------------...
最好用的版本:docker-engine_1.12.6-0-ubuntu-trusty_amd64.deb
Ruby on Rails is the revolutionary online programming tool that makes creating functional e-commerce web sites faster and easier than ever. With the intuitive, straightforward nature of Ruby and the ...
用于Ruby的Heroku Buildpack 这是用于Ruby,Rack和Rails应用程序的 。 它使用进行依赖管理。 该buildpack需要64位Linux。用法Ruby用法示例: $ lsGemfile Gemfile.lock$ heroku create --buildpack heroku/ruby$ git...
quantum espresso 视频可以认真学习 进行入门,非常不错的材料 给大家进行分享,值得拥有
OpenERP Installing Ubuntu9.04
Installing The JIA2 examples --------------------------- 1 Download the latest release from http://sf.net/projects/junitbook and unzip it in [jia_home] or check it out from CVS in [jia_home]. The ...
Installing The JIA2 examples --------------------------- 1 Download the latest release from http://sf.net/projects/junitbook and unzip it in [jia_home] or check it out from CVS in [jia_home]. The ...
Installing The JIA2 examples --------------------------- 1 Download the latest release from http://sf.net/projects/junitbook and unzip it in [jia_home] or check it out from CVS in [jia_home]. The ...
Installing The JIA2 examples --------------------------- 1 Download the latest release from http://sf.net/projects/junitbook and unzip it in [jia_home] or check it out from CVS in [jia_home]. The ...
Installing The JIA2 examples --------------------------- 1 Download the latest release from http://sf.net/projects/junitbook and unzip it in [jia_home] or check it out from CVS in [jia_home]. The ...
Installing The JIA2 examples --------------------------- 1 Download the latest release from http://sf.net/projects/junitbook and unzip it in [jia_home] or check it out from CVS in [jia_home]. The ...
C:\>gem envRubyGems Environment: - RUBYGEMS VERSION: 1.3.7 - RUBY VERSION: 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] - INSTALLATION DIRECTORY: c:/ruby/lib/ruby/gems/1.8 - RUBY EXECUTABLE: c:/...
插件方式安装 zend studio,PDF文档