Unsolved How to force QTableView cell to decimal input only?!
-
Hi,
I have QStandartItemModel in my form and I want to force specific cell to input decimal numbers only.How can I do that? I searched forum and saw delegate use but 6 yeras before. Maybe it can be better and esier way to do this?
I have invoice detail input QTableView and want to input unit quantity...
Regards,
Mucip:) -
Hi,
Do you mean an editor that uses a QSpinBox like shown in the Spin Box Delegate Example ?
-
Hi,
I checked. Yes. I got finally. But I couldn't increas the decimal points. I got only 2 decimal digit. But I want to use 6 decimal after the point? How can I do that?...Regards,
Mucip:) -
Use the doc Luke: QSpinBox maximum property
-
Hi,
As a standart spinbox use like 0.00.
But I need to use 0.000000 like numbers..Regards,
Mucip:) -
Hi,
I see. Ok...
I guess I need to use doublespinbox delegate...Regards,
Mucip:)