[Development] how to get WinId of desktop in Qt6 without QDesktopWidget ?
Martin Koller
kollix at aon.at
Wed Oct 7 08:24:40 CEST 2020
Hi,
in Qt6 the QDesktopWidget is gone, which I used in
QWidget *desktop = QApplication::desktop();
QPixmap pm = QGuiApplication::screenAt(event->globalPos())->
grabWindow(desktop->winId(), event->globalPos().x(), event->globalPos().y(), 1, 1);
How do I get the desktop window id in Qt6 ?
--
Best regards/Schöne Grüße
Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?
() ascii ribbon campaign - against html e-mail
/\ - against proprietary attachments
Frühstück, Geschenkideen, Accessoires, Kulinarisches: www.lillehus.at
More information about the Development
mailing list