A
A
AlexSer2020-01-10 13:20:09
Qt
AlexSer, 2020-01-10 13:20:09

How to bind 2 actions to 1 slot in QT?

How to bind 2 actions to 1 slot in QT?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Grigory, 2020-01-10
@AlexSer

In Qt, signals and slots can be bound in any combination as long as their signatures are compatible. In this case, you just need to do 2 QObject::Connect() to connect these QActions to the slot.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question