Emit signal from a static method and connect it to a setValue slot on a progress bar
-
@In-Fo said in Emit signal from a static method and connect it to a setValue slot on a progress bar:
What does it mean, "no such signal"?
It means that there is no signal saveProgressChanged() and it's correct. You only have a signal saveProgressChanged(quint32)
And your slot signature is also wrong. See signals and slot documentation. -
@In-Fo said in Emit signal from a static method and connect it to a setValue slot on a progress bar:
In the console window I get the following message, and the progress is not set:
Once you have read the topic @Christian-Ehrlicher refers you to, you would find it better to manage and you would get a compile-time error instead of a runtime one, if you changed over from the old
SIGNAL
/SLOT()
macros you are using to the new style syntax, as illustrated there and in https://wiki.qt.io/New_Signal_Slot_Syntax.