A
A
Alexander2020-12-06 20:22:28
Qt
Alexander, 2020-12-06 20:22:28

What is the best way to bind signals and slots?

I understand correctly that there are two ways to create slot and signal connections: through ui, and through code, i.e. connect()?
How to do it right? After all, if I do it through ui, this is not displayed in the code.
Or am I misunderstanding?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ighor July, 2020-12-06
@Shemapp

If you do this through ui, then moc will generate code where there will still be the same connect that you would have done yourself.
So there is no difference.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question