[SOLVED] Save a QTableView as an image
-
Hi All,
I have a QTableView which has been formatted w.r.t text color , background etc. I wish to save the table in the form of an image. How can i do that ?I appreciate your help.
-
Because QTableView is a QWidget, try this:
QPixmap pixmap(widget->size());
widget->render(&pixmap); -
Works perfect....thanks a lot.