Skip to Content.
Sympa Menu

cgal-discuss - Question about QPixmap and Qt_widget

Subject: CGAL users discussion list

List archive

Question about QPixmap and Qt_widget


Chronological Thread 
  • From: Mahmood Naderan <>
  • To: CGAL discuss <>
  • Subject: Question about QPixmap and Qt_widget
  • Date: Mon, 12 May 2008 03:53:34 -0700 (PDT)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=BJoZKnobTvX/kXrZv28NTr1uu3K6TAa5kqpH6MMbvOZWwHeCu/O0QBsbeJO8opsOnYiXN35RSTko6AuL5txXopE13C64UJBeS9WaZAKpqkj38Zx7At/9u4UzZfSEyj99Yiimh6W+Wjb8fmNe00xGkDs68XVV42PI1WMbBk0G3AQ=;

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

 

If the render() function is not defined in QT_widget, then what should I do?

 

Thanks,

 

-------------------
Mahmood Naderan
 


Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.


Archive powered by MHonArc 2.6.16.

Top of Page