Event handling in qtruby

I am trying Qt with Ruby and QtDesigner, but I do not understand how to handle events. I read and tried signals and slots, but I don’t see how I adjust the behavior, for example, if I want to trigger an action when I press a button.

+3
source share
1 answer

From homepage :

button = Qt::PushButton.new('Quit') do
  connect(SIGNAL :clicked) { Qt::Application.instance.quit }
end
+2
source

All Articles