Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[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.