{"id":464,"date":"2009-08-25T11:24:10","date_gmt":"2009-08-25T15:24:10","guid":{"rendered":"http:\/\/www.rakkar.org\/blog\/?p=464"},"modified":"2009-08-25T11:24:10","modified_gmt":"2009-08-25T15:24:10","slug":"how-to-get-a-callback-on-button-press-from-qt-designer","status":"publish","type":"post","link":"https:\/\/rakkar.org\/blog\/index.php\/2009\/08\/25\/how-to-get-a-callback-on-button-press-from-qt-designer\/","title":{"rendered":"How to get a callback on button press from QT designer"},"content":{"rendered":"<p>\t\t\t\tRight click on the body of the form.<br \/>\nClick Change Signals \/ Slots<br \/>\nUnder slots, press the + key. Add the name of the callback that you want.<br \/>\nLink it with the signal\/slot editor<br \/>\nNow your generated file of the same name will have a callback of the name of the slot you added<br \/>\nDerive from your generated file<br \/>\nUse public slots: to implement, as per the manual<\/p>\n<p>&#8212;EDIT&#8212;<\/p>\n<p>Found an easier way<br \/>\nDerive from the autogenerated class<br \/>\nWrite something like<br \/>\npublic slots:<br \/>\n\tvoid on_actionSQL_Query_activated();<\/p>\n<p>Replace actionSQL with the name of your object. Replace activated with the name of the signal that is sent.\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Right click on the body of the form. Click Change Signals \/ Slots Under slots, press the + key. Add the name of the callback that you want. Link it with the signal\/slot editor Now your generated file of the same name will have a callback of the name of the slot you added Derive [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/464"}],"collection":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=464"}],"version-history":[{"count":0,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/464\/revisions"}],"wp:attachment":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=464"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=464"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}