I was wondering if I could keep float values in a QTreeWidgetItem?
When I try to record numbers using setData(0,0,number) it rounds it up to 6 digits of precision which is not enough for me. I want to keep the exact float value for further calculations.
You can do one of two things, a QVariant can store any type pretty much:
And you would store the QVariant as the data.
Or you can set any arbitrary attributes on the item: