[Qt-interest] pixmap background for QTableView

Patrick Stinson patrickstinson.lists at gmail.com
Wed Jan 7 07:25:31 CET 2009


I'm trying to paint a pixmap behind a QTableView/QTableWidget,
starting at 0, 0 of the table widget (as opposed to 0, 0 of the
viewport). The attached files are examples of the blank background
image, and the finished product that I am after.

I imagine that this sort of thing would require that the QHeaderView
widgets and corner widget would need to be transparent, and somehow
the paint event would need to be intercepted correctly to paint on the
QTableView itself.

I know that the two images have a slightly different brightness, but
just ignore that and assume that they are the same.

Ideas? Thanks!



More information about the Qt-interest-old mailing list