[PyQt] Strange behaviour of key_return

2012-04-05 Thread Kamp, Peter van der (IMARES)
Hello, In my application I have a tableview in which the user must be able to scroll through the (editable) cells by using Tab, Key_right and Return. Columns that are disabled must be skipped. When the lower right cell is reached, a new row must be created when one of the before mentioned keys

[PyQt] Change background color of section in QHeaderView

2012-01-31 Thread Kamp, Peter van der (IMARES)
Hello, I have a QTableView with headers. The headers need a different background-color , depending if the items are set to editable. This can be toggled for the entire column by clicking the header. If the items are editable, the header must have a green background, otherwise red. I try to impl