online changeable Qlabel or qlineedit
-
Hi,
If it's a number input you should consider using QSpinBox or QDoubleSpinBox.
As for your question, do you mean connecting your widget a slot that would do something like
qDebug() << newValue? -
Hi,
If it's a number input you should consider using QSpinBox or QDoubleSpinBox.
As for your question, do you mean connecting your widget a slot that would do something like
qDebug() << newValue? -
Then QDoubleSpinBox is what you want.
As for the rest, please read the Signals And Slots chapter of Qt's documentation.
-
Hi
And when you read about signals and slots so you know what's it about,
you can use the help to get the connect statement as its a bit funky due as there are 2 versions. (overloads)https://doc.qt.io/qt-5/qdoublespinbox.html#valueChanged
connect(ui->doubleSpinBox, QOverload<double>::of(&QDoubleSpinBox::valueChanged), [=](double d){ qDebug() << d; });This uses a lambda for the slot.
it will print in the Application output.

-
@TahaLotfi
Hi
it already uses doubles.
so that should also work for float type.