PDA

View Full Version : Create translucent widget on Linux without Compiz.



TIT
25th October 2010, 09:29
The documentation for windowOpacity-prop (http://doc.qt.nokia.com/4.7/qwidget.html#windowOpacity-prop) said:
Note that under X11 you need to have a composite manager running, and the X11 specific _NET_WM_WINDOW_OPACITY atom needs to be supported by the window manager you are using.
That is, the opportunity to make a widget translucent only if the costs compositing manager (Compiz, for example).
How can I get around this restriction without damaging its cross-platform program?

Actually, we need not so much a translucent widget as the possibility of selection on the screen.
For example, in Linux there is a program scrot (http://freshmeat.net/projects/scrot/) which is able to select areas on the screen and then do a screen shot selection.
A similar possibility of making the screen I want to get into their program.

p. s.: I apologize for my bad English. I translated your question using the Google Translate Tools. If something in my question is not clear (not translated correctly), then point to it and I will clarify this point.

wysota
25th October 2010, 14:22
You can use QDesktopWidget. Use QPixmap::grabWidget() to grab the screenshot of the desktop so that you can do selections on it.