Writing a QGIS plugin with PyQGIS I need a table to store and view values that are floats. I found only these two models (QTableView / QTableWidget), but they only store QString type of data, and therefore sorting of numbers gets wrong (eg.
10, 23512, 24, 35, 6874 would be correct order while it's obviously not).
Main problems that I have are:
- Proper sorting is very important
- Size of values stored can be any (eg. can't say it will be always 4 digits with 2 precision digits)
Is there any alternative to store numbers in tables in QGIS plugins?