Thread
:
Qt4.6 - Something similar to "hildon_gtk_window_take_screenshot"
View Single Post
jstokes
2011-03-05 , 14:40
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
Quote & Reply
|
The Following User Says Thank You to jstokes For This Useful Post:
helex
jstokes
View Public Profile
Send a private message to jstokes
Find all posts by jstokes