Archive:Development/Tutorials/Qt4 Ruby Tutorial (zh TW): Difference between revisions

From KDE TechBase
(Created page with '{{Template:I18n/Language Navigation Bar|Development/Tutorials/Qt4 Ruby Tutorial}} ''作者:''[mailto:[email protected] Darshan Ishaya, qt-tutorial@darshancomputi...')
 
No edit summary
Line 4: Line 4:
== Ruby 的 Qt®4 教學  ==
== Ruby 的 Qt®4 教學  ==


本教學介紹使用 [http://qt.nokia.com/products/qt Qt]、[http://www.ruby-lang.org Ruby] 和 [http://rubyforge.org/projects/korundum/ qt4-qtruby] 的 GUI 程式設計。這不過是 Nokia 優秀的[http://doc.qt.nokia.com/latest/tutorials.html Qt 教學]簡單移植。
本教學介紹使用 [http://qt.nokia.com/products/qt Qt]、[http://www.ruby-lang.org Ruby] 和 [http://rubyforge.org/projects/korundum/ qt4-qtruby] 的 GUI 程式設計。這不過是 Nokia 優秀的[http://doc.qt.nokia.com/4.2/tutorial.html Qt 教學]簡單移植。
因此,本段後的大多數文字直接來自他們的教學。我有必要修改,使之適合 Ruby 綁定。並重新安排或改寫一些部分,使他們(我希望)更清晰點。
因此,本段後的大多數文字直接來自他們的教學。我有必要修改,使之適合 Ruby 綁定。並重新安排或改寫一些部分,使他們(我希望)更清晰點。


本教學並不包括一切,重點是教授 GUI 程式設計的哲學,和必要的 Qt 功能介紹。一些常用的功能可能會沒有在本教學使用過。
本教學並不包括一切,其重點放在傳授 GUI 程式的設計哲學,和必要的 Qt 功能介紹。一些較為一般的特色可能不會在本教學中被提及。


第一章由最小的「Hello World」程式開頭,後面的章節將介紹新概念。到第14章,第1章的「Hello World」程式將變成448行的遊戲。
第一章由最小的「Hello World」程式開頭,並於接下來的每一章介紹新的概念。到第14章,第1章的「Hello World」程式將變成448行的遊戲。


如果您從未學過 Qt,您可能需要閱讀[http://doc.qt.nokia.com/latest/how-to-learn-qt.html 如何學習 Qt]。請記住,和大多數 Qt 相關的文件一樣,這是非常 C++ 導向的。
如果您對 Qt 是完全陌生的,您可能需要閱讀[http://doc.qt.nokia.com/latest/how-to-learn-qt.html 如何學習 Qt]。請記住,和大多數 Qt 相關的文件一樣,這是非常 C++ 導向的。
 
==目錄==
 
#[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 01|Hello World!]]
#[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 2|Calling it Quits]]
#[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 3|Family Values]] (unfinished)
#[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 4|Let There Be Widgets]] (unfinished)
#[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 5|Building Blocks]] (unfinished)
#[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 6|Building Blocks Galore!]] (unfinished)
#[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 7|One Thing Leads to Another]] (unfinished)
#[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 8|Preparing for Battle]] (unfinished)
#[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 9|With Cannon You Can]] (unfinished)
#[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 10|Smooth as Silk]] (unfinished)
#[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 11|Giving It a Shot]] (unfinished)
#[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 12|Hanging in the Air the Way Bricks Don't]] (unfinished)
#[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 13|Game Over]] (unfinished)
#[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 14|Facing the Wall]] (unfinished)
 
這個小遊戲看起來並沒有那麼像一個時髦的 GUI 應用程式。雖然它使用了一些 GUI 技術,不過在你開始使用它之後,我們建議你試試這個 [http://doc.qt.nokia.com/latest/mainwindows-application.html Application] 範例,它提供了一個擁有選單、工具列、一個狀態列等等的小型 GUI 應用程式。這裡有不少很有教育意義的[http://oc.qt.nokia.com/latest/examples.html 範例]。他們都是用 C++ 寫成的,但很容易跟進。因為這一點,證明他們是 Qt 的使用說明,而不是 C++ 功能。


Right now this tutorial is hosted on my site.  I am going to be bringing it over here over the next week or so.
Right now this tutorial is hosted on my site.  I am going to be bringing it over here over the next week or so.
Line 21: Line 40:
until it is fully transferred over to this wiki.
until it is fully transferred over to this wiki.


==目錄==
[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 01|第1章]]
[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 2|第2章]]
[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 3|第3章]] (unfinished)
[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 4|第4章]] (unfinished)
[[Development/Tutorials/Qt4 Ruby Tutorial/Chapter 5|第5章]] (unfinished)


[[Category:Ruby]]
[[Category:Ruby]]

Revision as of 14:21, 20 December 2009


Development/Tutorials/Qt4 Ruby Tutorial

作者:Darshan Ishaya, [email protected]

Ruby 的 Qt®4 教學

本教學介紹使用 QtRubyqt4-qtruby 的 GUI 程式設計。這不過是 Nokia 優秀的Qt 教學簡單移植。 因此,本段後的大多數文字直接來自他們的教學。我有必要修改,使之適合 Ruby 綁定。並重新安排或改寫一些部分,使他們(我希望)更清晰點。

本教學並不包括一切,其重點放在傳授 GUI 程式的設計哲學,和必要的 Qt 功能介紹。一些較為一般的特色可能不會在本教學中被提及。

第一章由最小的「Hello World」程式開頭,並於接下來的每一章介紹新的概念。到第14章,第1章的「Hello World」程式將變成448行的遊戲。

如果您對 Qt 是完全陌生的,您可能需要閱讀如何學習 Qt。請記住,和大多數 Qt 相關的文件一樣,這是非常 C++ 導向的。

目錄

  1. Hello World!
  2. Calling it Quits
  3. Family Values (unfinished)
  4. Let There Be Widgets (unfinished)
  5. Building Blocks (unfinished)
  6. Building Blocks Galore! (unfinished)
  7. One Thing Leads to Another (unfinished)
  8. Preparing for Battle (unfinished)
  9. With Cannon You Can (unfinished)
  10. Smooth as Silk (unfinished)
  11. Giving It a Shot (unfinished)
  12. Hanging in the Air the Way Bricks Don't (unfinished)
  13. Game Over (unfinished)
  14. Facing the Wall (unfinished)

這個小遊戲看起來並沒有那麼像一個時髦的 GUI 應用程式。雖然它使用了一些 GUI 技術,不過在你開始使用它之後,我們建議你試試這個 Application 範例,它提供了一個擁有選單、工具列、一個狀態列等等的小型 GUI 應用程式。這裡有不少很有教育意義的範例。他們都是用 C++ 寫成的,但很容易跟進。因為這一點,證明他們是 Qt 的使用說明,而不是 C++ 功能。

Right now this tutorial is hosted on my site. I am going to be bringing it over here over the next week or so.

You can currently access this tutorial at the following address:

http://www.darshancomputing.com/qt4-qtruby-tutorial/

until it is fully transferred over to this wiki.