View Full Version : QTableWidget formatting question

5th October 2011, 20:36
I need to show the user both input and output values for a table, including an index number.

For example:

Index----------------Input X--------------Input Y-------------Output X-----------Output Y

To make it more readable I would like to put either a double line or a thicker line between the "Input Y" and "Output X" columns.
Is there a way to do this?

6th October 2011, 08:16
I think style sheets for QTableWidgetItem might help. Or there is one more option - to set a different background color for the output values.

6th October 2011, 20:15
I ended up using two tables, disabling the scroll bar on one and linking both scroll bars together (so the rows would always line up). I may switch to the different colors thing though, depending on how they both look.