How do I create a custom slot in qt4 designer?

前端 未结 10 576
我在风中等你
我在风中等你 2020-12-14 18:29

Whenever I use the signal/slot editor dialog box, I have to choose from the existing list of slots. So the question is how do I create a custom named slot?

10条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-14 18:59

    click the widget by right button

    promote the widget into a class you defined

    click the widget by right button again

    you will see that signal and slot is editable

提交回复
热议问题