3

I trying Qt with Ruby and QtDesigner but I don't understand how to handle events. I read and tried signals and slots but I don't see how I customize behavior for example if I want to trigger an action when I click on a button.

Cristhian Boujon
  • 4,060
  • 13
  • 51
  • 90

1 Answers1

2

From the home page:

button = Qt::PushButton.new('Quit') do
  connect(SIGNAL :clicked) { Qt::Application.instance.quit }
end
Phrogz
  • 296,393
  • 112
  • 651
  • 745