Bug #7197
openWSpinBox/WDoubleSpinBox valueChanged() is not emitted when connected after the spinbox is rendered
0%
Description
When valueChanged()
is connected after creating a spinbox, before it is rendered, it is properly emitted. However, when connected afterwards, it's not.
To reproduce: run the attached example and click on "Connect signals". This should cause value changes to be logged in the console, but they're not.
We're currently connecting changed()
to valueChanged()
in signalConnectionsChanged()
. changed()
is an EventSignal
, and connecting this causes signalConnectionsChanged()
to be invoked. valueChanged()
is a WSignal
, so connecting it does not (a WSignal
also does not have an owner).
Workaround is either connecting the signals right after creation of the spinbox, or by connecting the changed()
signal after connecting the valueChanged()
signal.
Files
No data to display