How do I create a custom slot in qt4 designer?

前端 未结 10 577
我在风中等你
我在风中等你 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:45

    Maybe it'll help.

    By default you have to choose from the existing list of slots. But you can add slot by right-clicking at you object in the list at right side of designer and choose "slot/signals" and add your custom slot/signal. After that, you can choose it in signal/slot editor.

提交回复
热议问题