Solved SpinBox onValueModified is not available due to component versioning
-
Hi,
Have You any idea why it doesn't work?
import QtQuick 2.9 import QtQuick.Controls 2.2 SpinBox { from: 1; to: 50 value: 5 onValueModified: console.log(value) }
I'm getting only:
"SpinBox.onValueModified" is not available due to component versioning.but doc is quite clear: https://doc.qt.io/qt-5/qml-qtquick-controls2-spinbox.html#valueModified-signal
I'm on Qt 5.9.3 (5.9.2 also had this problem).
-
Hi!
We've had the same problem with other components, e.g. QTBUG-59908. It's a bug in the signal revisioning system. Please go to https://bugreports.qt.io and file a bug report. In the meantime, you can use the following as a workaround:
Connections { target: mySpinBox onValueModified: { console.log(mySpinBox.value) } }
-
@Wieland
Thanks a lot for the clue!I reported a bug as well
-
https://bugreports.qt.io/browse/QTBUG-64762
Seems like culprit of this issue is 'frameworks-qqc2-desktop-style' package of KDE Frameworks (I'm on KDE Plasma).
In other words, this SpinBox example works fine with i.e. Material style or on other systems or Desktop Environments.
Maybe it will help others.