Project

General

Profile

How to save the graphic of a widget to file?

Added by Richel Bilderbeek over 13 years ago

Dear Wt users,

How to save the graphic of a widget to file? The example below does not work, but show my intentions.

const Wt::WWidget * const my_widget = /* something */ ;
my_widget->SaveToFile("my_widget.png");

Thanks in advance, Richel Bilderbeek