Archive for June, 2007

ruby Qt custom widget example

Monday, June 4th, 2007

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.

(more…)

Popularity: 21% [?]

ruby Qt::TreeWidget example

Saturday, June 2nd, 2007

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.
(more…)

Popularity: 20% [?]