MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / ScreenCapture

Method ScreenCapture

dialog/screencapture.cpp:28–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26#include <QApplication>
27
28ScreenCapture::ScreenCapture(QWidget *parent) :
29 QDialog(parent)
30{
31
32 setWindowFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint );
33 setWindowState(Qt::WindowFullScreen);
34 setCursor(Qt::CrossCursor);
35
36 sizeDesktop = QApplication::desktop()->size();
37 resize(sizeDesktop);
38
39 desktopPixmapBkg = QPixmap::grabWindow(QApplication::desktop()->winId());
40 desktopPixmapClr = desktopPixmapBkg;
41
42 move(0, 0);
43 drawBackGround();
44}
45
46
47

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected