View Single Post
Posts: 235 | Thanked: 339 times | Joined on Nov 2010
#3
I don't know if there's any Qt-specific method for this, but look at the function itself: http://maemo.gitorious.org/hildon/hi...-gtk.c#line478

Notice that the bits which actually request for the screenshot to be taken are calls to the X library - they're not GTK+ specific!

You could replace GDK_WINDOW_XID with QWidget::winId() and look through QWidget::x11Info's display member to replace gtk_widget_get_display (as a start)

But maybe there is a Qt method for this and I'm going OTT
 

The Following User Says Thank You to jstokes For This Useful Post: