Type-aware rendering (and editing) of tabular data in pyqt4
- by pihentagy
I would like to have a very short / minimal example of how to create some tabular widget with different types of item in it.
In the first round let's say I'd like to render [["Hello", 12, True], ["World", 13, False]] (Hello as string, 12 as number (right-align), True as a checkbox for eg.), but it would be nice to have Dates, Colors, and other type of info.
Next round: editing (integer with spinbox, maybe sometimes a combobox is handy, but that may not work out of the box).
There must be a simple solution, but I couldn't find...