I'am trying to use QTableWidget in an application. and I want to know how changing the pen of the vertical
and horizontal Line independently.

I found the function
void setGridStyle ( Qt::PenStyle style )

but the problem with this function is that it applies the same PenStyle on both Vertical and horizontal

Line of the grid . but I want to apply one penStyle for the vertical Line and another penStyle for

the horizontals.



can you help me?



thanks in advance.