Development/Tutorials/Qt4 Ruby Tutorial/ru: Difference between revisions
Aspotashev (talk | contribs) (Created page with "Здесь приведены портированные на язык Ruby [http://doc.qt.nokia.com/4.2/tutorial.html обучающие примеры работы с Qt 4.2].") |
Aspotashev (talk | contribs) (Created page with "Таким образом, большая часть текста взята взята из тех примеров. Я их отредактировал для работы с ...") |
||
Line 11: | Line 11: | ||
[http://rubyforge.org/projects/korundum/ qt4-qtruby]. | [http://rubyforge.org/projects/korundum/ qt4-qtruby]. | ||
Здесь приведены портированные на язык Ruby [http://doc.qt.nokia.com/4.2/tutorial.html обучающие примеры работы с Qt 4.2]. | Здесь приведены портированные на язык Ruby [http://doc.qt.nokia.com/4.2/tutorial.html обучающие примеры работы с Qt 4.2]. | ||
Таким образом, большая часть текста взята взята из тех примеров. Я их отредактировал для работы с привязками (bindings) для языка Ruby и местами изменил их для большей понятности. | |||
This tutorial doesn't cover everything; the emphasis is on teaching the programming philosophy of GUI programming, and Qt's features are introduced as needed. Some commonly used features are never used in this tutorial. | This tutorial doesn't cover everything; the emphasis is on teaching the programming philosophy of GUI programming, and Qt's features are introduced as needed. Some commonly used features are never used in this tutorial. |
Revision as of 20:07, 1 July 2011
Development/Tutorials/Qt4 Ruby Tutorial
Languages: عربي | Asturianu | Català | Česky | Kaszëbsczi | Dansk | Deutsch | English | Esperanto | Español | Eesti | فارسی | Suomi | Français | Galego | Italiano | 日本語 | 한국어 | Norwegian | Polski | Português Brasileiro | Română | Русский | Svenska | Slovenčina | Slovenščina | српски | Türkçe | Tiếng Việt | Українська | 简体中文 | 繁體中文
Автор: Darshan Ishaya, [email protected]
Ссылка на оригинал:http://www.darshancomputing.com/qt4-qtruby-tutorial/
Введение в программирование на Qt®4 на языке Ruby
Эта статья является введением в программирование графического интерфейса пользователя (ГИП, англ. GUI) с использованием библиотеки Qt, языка Ruby, и qt4-qtruby. Здесь приведены портированные на язык Ruby обучающие примеры работы с Qt 4.2. Таким образом, большая часть текста взята взята из тех примеров. Я их отредактировал для работы с привязками (bindings) для языка Ruby и местами изменил их для большей понятности.
This tutorial doesn't cover everything; the emphasis is on teaching the programming philosophy of GUI programming, and Qt's features are introduced as needed. Some commonly used features are never used in this tutorial.
Chapter one starts with a minimal "Hello world" program and the following chapters introduce new concepts. By Chapter 14, the "Hello world" program from Chapter 1 will have turned into a 448-line game.
If you're completely new to Qt, you might want to read How to Learn Qt if you haven't already done so. Keep in mind that like most documents about Qt, it is very C++ oriented.
Table of Contents
- Hello World!
- Calling it Quits
- Family Values
- Let There Be Widgets
- Building Blocks
- Building Blocks Galore!
- One Thing Leads to Another
- Preparing for Battle
- With Cannon You Can
- Smooth as Silk
- Giving It a Shot
- Hanging in the Air the Way Bricks Don't
- Game Over
- Facing the Wall
This little game doesn't look much like a modern GUI application. It uses some GUI techniques, but after you've worked through it, I recommend checking out the Application example, which presents a small GUI application with menus, tool bars, a status bar, and so on. There are quite a few very educational Examples. They are all written in C++, but are easy enough to follow since the point of them is to demonstrate usage of the Qt library, not C++ features.