voidSomeObject::make_connections(){// converting when a method overloadsconnect(mySpinBox,SIGNAL(valueChanged(int)),mySlider,SLOT(setValue(int));connect(mySpinBox,static_cast<void(QSpinBox::*)(int)>(&QSpinBox::valueChanged),mySlider,&QSlider::setValue);}
Comments (0)
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.