Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 3

Qt-interest Archive, January 2007
I would like to know what is the process of capturing screen in QT on Linux platform..


Message 1 in thread

Hi all,

I am very brand new to the development of QT...

Would anybody knows, how to capture screen and store it as Bitmap or any
imaging format...

Thanks and regards
Uma.

--
 [ signature omitted ] 

Message 2 in thread

Uma,

Welcome to paradise, Qt rocks.

QString filename = "ScreenShot.png";
QPixmap shot = QPixmap::grabWidget(widget);
shot.save(filename, "PNG"); // See docs for other types

--Justin

Rao, UmaMaheswara(GE Healthcare) wrote:
> Hi all,
>
> I am very brand new to the development of QT...
>
> Would anybody knows, how to capture screen and store it as Bitmap or any
> imaging format...
>
> Thanks and regards
> Uma.
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>   

begin:vcard
begin:vcard
fn:Justin Noel
n:Noel;Justin
org:ICS;Engineering
adr:;;54B Middlesex Trpk;Bedford;MA;01730;USA
email;internet:justin@xxxxxxx
title:Sr. Consulting Engineer / Certified Qt Instructor
tel;work:(617) 621-0060
url:http://www.ics.com
version:2.1
end:vcard


Message 3 in thread

Uma,

Check the example
<Qt dir>\examples\widgets\screenshot 
It does what exactly you are looking for.

Cheers,
Jaya

> -----Original Message-----
> From: Justin Noel [mailto:justin@xxxxxxx] 
> Sent: Thursday, January 18, 2007 10:54 AM
> To: qt-interest@xxxxxxxxxxxxx
> Subject: Re: I would like to know what is the process of 
> capturing screen in QT on Linux platform..
> 
> Uma,
> 
> Welcome to paradise, Qt rocks.
> 
> QString filename = "ScreenShot.png";
> QPixmap shot = QPixmap::grabWidget(widget); 
> shot.save(filename, "PNG"); // See docs for other types
> 
> --Justin
> 
> Rao, UmaMaheswara(GE Healthcare) wrote:
> > Hi all,
> >
> > I am very brand new to the development of QT...
> >
> > Would anybody knows, how to capture screen and store it as 
> Bitmap or 
> > any imaging format...
> >
> > Thanks and regards
> > Uma.
> >
> > --
> > To unsubscribe - send a mail to 
> qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the 
> subject or the body.
> > List archive and information: 
> http://lists.trolltech.com/qt-interest/
> >
> >   
> 
> 

--
 [ signature omitted ]