Bugzilla – Bug 361995
[Qt4-UI] screenshots empty
Last modified: 2008-04-02 09:12:57 UTC
When I press Shift + PrtScreen, an empty png is saved. Well, it has the right size, but everything is white.
Created attachment 195025 [details] broken screenshot
It seems to be problem of yast2-qt
*** Bug 368161 has been marked as a duplicate of this bug. ***
It also happens with normal YaST2 screen shots during installation. (Tested with 11.0-Alpha2+).
I tried replacing the current dialog by using the winId of QApplication::desktop() and I did got the screenshot of the whole desktop. However, if I add debug to the winId the UI gets from QWidget * dialog = (QWidget *) YDialog::currentDialog()->widgetRep(); std::cout << std::hex << dialog->winId() << std::endl; I get: 52007c7 while xwininfo says: xwininfo: Window id: 0x5200001 "YaST2" mod-ui bug?
xwininfo very likely displays the window ID of the WM window around the Qt window. Plus, YQMainDialog windows are typically swallowed by the YQMainWinDock (which in turn has a WM window around it). QWidget::topLevelWidget() might help here.
Yes, that helps, fixed in svn. Please submit later when we accumulate some bugfixes.
*** Bug 375170 has been marked as a duplicate of this bug. ***