PDA

View Full Version : QTableWidget Header Cell Occluded When Rendered to Printer



tpreilly
4th March 2011, 02:48
Hello,

I am having a problem when rendering a QTableWidget to the printer. Onscreen the image is fine but on paper the right part of the right most horizontal header cell is occluded by a grayish rectangle sized the full height of the cell and the same width as a scrollbar. I am thinking that it must be more than a coincidence that the width is the same as the scrollbar that is not present and should not be present. I have played with varying sizes for rows and columns but the grayish rectangle remains. I have tried setting the vertical scrollbar policy to "Qt::ScrollBarAlwaysOff". This did not solve my problem. Any ideas on where to look further for a possible solution would be greatly appreciated.

Using Qt 4.7.2 on Mac OS X 10.6.6 with an Epson Stylus Photo R380 printer.

Thanks,

Tim Reilly

wysota
6th March 2011, 09:06
I guess we would have to see the printer output first.

tpreilly
8th March 2011, 20:11
Here is a picture:

6056

wysota
9th March 2011, 11:55
And the relevant code?

tpreilly
9th March 2011, 18:25
Here is the code:

6062

6063