Type-aware rendering (and editing) of tabular data in pyqt4

Posted by pihentagy on Stack Overflow See other posts from Stack Overflow or by pihentagy
Published on 2010-05-27T20:55:37Z Indexed on 2010/05/28 13:22 UTC
Read the original article Hit count: 196

Filed under:
|
|
|
|

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...

© Stack Overflow or respective owner

Related posts about python

Related posts about gui