Re: [Development] how to get WinId of desktop in Qt6 without QDesktopWidget ?

2020-10-14 Thread Volker Hilsheimer
> On 7 Oct 2020, at 10:38, Volker Hilsheimer wrote: > >> On 7 Oct 2020, at 08:24, Martin Koller wrote: >> >> Hi, >> >> in Qt6 the QDesktopWidget is gone, which I used in >> >> QWidget *desktop = QApplication::desktop(); >> QPixmap pm = QGuiApplication::screenAt(event->globalPos())-> >>

Re: [Development] how to get WinId of desktop in Qt6 without QDesktopWidget ?

2020-10-07 Thread Volker Hilsheimer
> On 7 Oct 2020, at 08:24, Martin Koller wrote: > > Hi, > > in Qt6 the QDesktopWidget is gone, which I used in > > QWidget *desktop = QApplication::desktop(); > QPixmap pm = QGuiApplication::screenAt(event->globalPos())-> >grabWindow(desktop->winId(),

Re: [Development] how to get WinId of desktop in Qt6 without QDesktopWidget ?

2020-10-07 Thread Volker Hilsheimer
> On 7 Oct 2020, at 08:24, Martin Koller wrote: > > Hi, > > in Qt6 the QDesktopWidget is gone, which I used in > >QWidget *desktop = QApplication::desktop(); >QPixmap pm = QGuiApplication::screenAt(event->globalPos())-> > grabWindow(desktop->winId(),

Re: [Development] how to get WinId of desktop in Qt6 without QDesktopWidget ?

2020-10-07 Thread Martin Koller
On Mittwoch, 7. Oktober 2020 08:24:40 CEST Martin Koller wrote: > Hi, > > in Qt6 the QDesktopWidget is gone, which I used in > > QWidget *desktop = QApplication::desktop(); > QPixmap pm = QGuiApplication::screenAt(event->globalPos())-> > grabWindow(desktop->winId(),

[Development] how to get WinId of desktop in Qt6 without QDesktopWidget ?

2020-10-07 Thread Martin Koller
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