PDA

View Full Version : Python - Disable the buffer of a QMainWindow to be invisible to grabWindow



mypixel
25th May 2018, 22:56
Hi!

I need to disable the buffer of a QMainWindow() to be invisible to grabWindow() for MS Windows.

Already tried:

self.setWindowOpacity()
self.setWindowFlags(QtCore.Qt.FramelessWindowHint)
self.setAttribute(QtCore.Qt.WA_NoSystemBackground)
self.setWindowState(QtCore.Qt.WindowStaysOnTopHint )
self.setAttribute(QtCore.Qt.WA_PaintOnScreen, False)

And nothing worked =/

It is possible? Can someone help me?

Very thanks!