Hi,
Glad you found out and thanks for sharing !
Just a quick note: there's no need to modify the title anymore to mark the thread as solved. You can use the "Topic Tool" button for that. That makes things cleaner :)
You're welcome !
I'd also recommend using _ as placeholder char rather than 0, otherwise people will think there's a default PIN or maybe no protection at all.
Thanks for your answer, but this also would not work for other line edits.
In QT creator I cannot find the input mask setting for the QSpinBox, this would be helpful in a shared project, so everyone directly would see the input Mask like in the QlinEdit.
But anyway you solution would be a workaorund but does not explain why this issue .
The only explanation like you already mentioned is because of useage of backspace deletion.
HI and welcome to devnet,
you can connect a slot to the QHeaderView::sectionResized() signal to be notified when a column is resized
connect(tableView->horizontalHeader(), &QHeaderView::sectionResized,
this, &MyWIdget::slotColumnResized);
Hola
Como siempre digo, lo mejor que puedes hacer es acostumbrarte a consultar la documentación, en el caso de Qt es muy clara y completa.
Para convertir el número tienes el método int toInt(bool * ok = 0, int base = 10) de la clase QString:
http://doc.qt.io/qt-5/qstring.html#toInt
En el QLineEdit puedes usar una máscara para asegurarte que solo se introducen números:
http://doc.qt.io/qt-5/qlineedit.html#inputMask-prop
Para acceder al contenido del QLineEdit el método a usar es text():
http://doc.qt.io/qt-5/qlineedit.html#text-prop
Un saludo