Answer the question
In order to leave comments, you need to log in
Does Qt have a mechanism to forward the Child signal on behalf of the Parent?
Good evening everyone! At the moment I am separating the program interface from the logic, and organizing communication through slots and signals. I do like this:
QSlider* seekSlider = new QSlider(this);
connect(seekSlider, SIGNAL(sliderMoved(int)), this, SLOT(on_sliderMoved(int)));
void ui::on_sliderMoved(int value)
{
emit sliderMoved(value);
}
Answer the question
In order to leave comments, you need to log in
What's stopping you from attaching a signal to a signal?
I really don’t know why, but your example can be rewritten like this without using additional methods.
PS
Also, discover the syntax for slots and signals from Qt5: qt-project.org/wiki/New_Signal_Slot_Syntax
Well, you can bind one signal to several slots. It's not entirely clear what you want to do. Show more code.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question