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/
分享到:
相关推荐
Ubuntu用户通常会依赖于包管理工具`apt-get`来安装Ruby,这种方式虽然简单便捷,但在某些情况下可能无法满足定制化的需求。本文将详细介绍如何通过手动编译的方式安装Ruby,并提供一种灵活的升级策略。 #### 手动...
安装 Mumax 3.9.1 和 Gnuplot 5.2 在 Windows 10 中的步骤指南 在这篇文章中,我们将一步步指导用户安装 Mumax 3.9.1 和 Gnuplot 5.2 在 Windows 10 操作系统中。这篇文章将为用户提供详细的安装步骤和相关知识点,...
标题与描述均提到了“ruby on rails安装环境”,这表明文档主要关注的是如何在特定的环境中设置Ruby on Rails。Ruby on Rails(常简称为Rails)是一种用于开发Web应用程序的开源框架,采用Ruby语言编写,遵循MVC...
### 安装BR工具在非ABAP数据库上 #### 概述 BR*Tools是SAP为备份、恢复以及管理数据库而设计的一套工具。通常情况下,这些工具主要用于支持SAP内部的ABAP系统。然而,在某些特定环境下,如Oracle环境下的非SAP...
### 安装Anaconda在Ubuntu上的详细步骤及关键知识点 #### 一、Anaconda简介 Anaconda是一款非常受欢迎的数据科学平台,它集成了Python或R语言环境中的许多库和工具,便于用户进行数据处理、科学计算、机器学习等...
### 标题解读:“Installing-Studio-v6-1-Plugins” 标题“Installing-Studio-v6-1-Plugins”清晰地指出了本文的主题:安装 Zend Studio 的 v6.1 版本作为插件。这暗示了该过程是在一个已经存在的 Eclipse 集成开发...
Installing sgcWebSockets in Rad Studio 7 - XE8 - 10.2 Tokyo --------------------------------------------------------------------------------------------------------------------------------------------...
最好用的版本:docker-engine_1.12.6-0-ubuntu-trusty_amd64.deb
在Ubuntu 10.04环境下安装NS2(网络模拟器2.34)是一个涉及多个步骤的过程,这个过程对于那些需要进行网络模拟和性能分析的IT专业人员来说至关重要。NS2是一个开源的网络模拟软件,它允许用户模拟各种网络环境,测试...
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...
1. Open edX平台简介:文档中提到的“Installing, Configuring, and Running the Open edX Platform”是一个运行手册,该手册对如何安装、配置和运行Open edX平台提供了详尽的指导。Open edX平台支持各种在线教育...
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 ...
用与解决错误: Error Code 0x800F081F when Installing .NET Framework 3.5