Jun 04 2007

ruby Qt custom widget example

Category: Ruby, X Windowsetd @ 1:08 am

With Qt’s custom widgets you can create the building blocks of the GUI of your application.

In this case we are creating a graphical command line. The command line will consist mainly of a text input box (Qt::LineEdit). The widget will have memory, that is, every line entered by the user will be added to the internal history of the widget and will be accessible by means of Up and Down arrows as the standard *nix command line.

Continue reading “ruby Qt custom widget example”

Popularity: 14% [?]


Jun 02 2007

ruby Qt::TreeWidget example

Category: Ruby, X Windowsetd @ 6:23 pm

I am involved in some projects were we are using Qt library for GUI development with ruby. In the following example I will show how to use the Qt::TreeWidget object.

The TreeWidget can be used not only to display information hierarchically but also to add multiple columns to the data model.
Continue reading “ruby Qt::TreeWidget example”

Popularity: 19% [?]