QTableWidgetItem. Numbers only.
-
How can I make QTableWidgetItem accepting numbers only in editing.
-
Hi,
Use a custom QStyledItemDelegate that returns a QSpinBox has an editor
-
Thank you. But I can't find any examples.
-
Please, read the "documentation":http://qt-project.org/doc/qt-5/qstyleditemdelegate.html#details the link to the "example":http://qt-project.org/doc/qt-5/qtwidgets-itemviews-spinboxdelegate-example.html is given
-
It works. Thank you!
-
How can I disable scrollbar?
-
What scrollbar ?
-
I mistaked. Arrows on the right side. Not scrollbar.
-
Solved.
[code]
editor->setButtonSymbols(QAbstractSpinBox::NoButtons);
[/code]
Thank you. -
You're welcome !
Since you have it working now as you like it, please update the thread title prepending [solved] so other forum users may know a solution has been found :)