[Qt-interest] Qt and screensaver with X11

Bartosh Wroblevksy bartosh at live.com
Thu Oct 21 01:40:49 CEST 2010


Unfortunately I have tried this API and was not able to "plug in" a Qt widget in this. From the page you sent me, the method
XScreenSaverRegister(Display *dpy, int screen,XID xid, Atom type);

seemed promising. But I can't really make out the parameters. What I am supposed to put in screen? What am I supposed to but in xid and what am I put in Atom.
If anybody knows how to plug a Qt widget in this. It would be nice.
Thanks,Christopher

> From: cmakshin at gmail.com
> To: qt-interest at trolltech.com
> Date: Thu, 21 Oct 2010 02:24:56 +0400
> Subject: Re: [Qt-interest] Qt and screensaver with X11
> 
> Take a look at
> http://linux.die.net/man/3/xscreensaverqueryextension
> 
> On Thursday 21 October 2010 01:39:03 Bartosh Wroblevksy wrote:
> > 
> > Ok, and how can I programmatically tell it to start a Qt widget as a screensaver? Is there a X method for that? 
> > 
> > > From: cmakshin at gmail.com
> > > To: qt-interest at trolltech.com
> > > Date: Thu, 21 Oct 2010 01:35:49 +0400
> > > Subject: Re: [Qt-interest] Qt and screensaver with X11
> > > 
> > > Obviously, XActivateScreensaver() starts/activates the currently configured screensaver, not some "random" application.
> > > 
> > > On Thursday 21 October 2010 01:26:16 Bartosh Wroblevksy wrote:
> > > > 
> > > > Hi,
> > > > First off, thanks for the interest. 
> > > > And please bear with me, because this is very new to me. The X methods
> > > > 
> > > > XActivateScreenSaver(display) Display *displayand XSetScreenSaver(display, timeout, interval, prefer_blanking, allow_exposures)
> > > > programmed like this in this sequence:
> > > > 
> > > > int main(int argc, char *argv[]) {     XSetScreenSaver(display, 1000, 1000,  DontPreferBlanking                     , DefaultExposures );         XActivateScreenSaver(display);
> > > >    return 0; }
> > > > 
> > > > will activate a screensaver that is actually the X logo. But I wanted to know if the method XActivateScreenSaver(display) can activate a "hello world" QWidget instead.
> > > > Thanks,
> > > > Bartosh
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101020/09faa37e/attachment.html 


More information about the Qt-interest-old mailing list