I’m using Qt now.
I’ve written a C++ class A and there are some public functions in it. And now, I’m writing a Qt class B which has multiple inheritences from both QObject and A.
And I want to change one public function in A to public slots in B.
Can it be possible?
You can do that by simply creating a slot in
Band delegating toA‘s function in there.Here’s an example:
Class
Adoesn’t need to be “aware” of Qt at all.