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



_______________________________________________
Development mailing list
[email protected]
https://lists.qt-project.org/listinfo/development

Reply via email to