import QtQuick 2.9 import QtQuick.Controls 2.2 SpinBox { from: 1; to: 50 value: 5 onValueModified: console.log(value) }