Qt auto connecting widget events

 I had no idea this was a thing until I couldn't figure out how a slot was being fired. Qt will auto-connect event handlers with the right name. This applies to dialogs or widgets using a .ui file from QT Designer, and maybe they have to use multiple inheritance of the UI? If the there's a widget named okButton and a slot with a name void on_okButton_clicked(); Qt moc stuff will auto-connect the clicked signal to that slot. Hopefully I've got enough of that right that you can recognize it when you see it. Definitely had me stumped for a little bit!


Popular posts from this blog

Inno Setup custom data directory location

OpenEmbedded Angstrom for Advantech PCM-9375

Inno Setup MSVC vcredist without bothering your users