[Qt-interest] Setting a label's value from a slider automatically on launch
David Doria
daviddoria at gmail.com
Wed Aug 24 18:26:38 CEST 2011
I have a slider and a label on my QMainWindow. In QtDesigner, I've
created a signal/slot pair so that the slider's value is displayed in
the label. When I run the program and slide the slider, the label is
updated appropriately. However, the label does not take the correct
value until the slider is moved for the first time. Is there a way to
automatically make the label take the slider's value as soon as the
program is started (before the slider is moved)?
Thanks,
David
More information about the Qt-interest-old
mailing list