Subject: CGAL users discussion list
List archive
- From: Laurent Rineau <>
- To:
- Subject: Re: [cgal-discuss] Question about QPixmap and Qt_widget
- Date: Mon, 12 May 2008 16:08:24 +0200
- Organization: Inria, Sophia Antipolis, FRANCE
On Monday 12 May 2008 12:53:34 Mahmood Naderan wrote:
> Hi,
> I want to save the QT output window in a known picture format. To do this I
> found these statements: QPixmap pixmap(widget->size());
> widget->render(&pixmap);
> pixmap.save("myWidget.png");
> The error of using this is:error C2039: 'render' : is not a member of
> 'CGAL::Qt_widget' error C2661: 'QPixmap::save' : no overloaded function
> takes 1 arguments
Indeed, there is no such function 'render' in Qt3's QWidget.
Anyway, CGAL::Qt_widget has a documented function get_pixmap(), that gives
you
a pixmap of the widget's viewport. See the documentation:
http://www.cgal.org/Manual/3.3/doc_html/cgal_manual/Qt_widget_ref/Class_Qt_widget.html
--
Laurent Rineau
INRIA - Sophia Antipolis
BP 93, 2004 Route des Lucioles
06902 Sophia Antipolis Cedex FRANCE
Tel: +33 4 92 38 78 62 (Fax: +33.4.97.15.53.95)
- Question about QPixmap and Qt_widget, Mahmood Naderan, 05/12/2008
- Re: [cgal-discuss] Question about QPixmap and Qt_widget, Laurent Rineau, 05/12/2008
Archive powered by MHonArc 2.6.16.