screenshot rect fix

This commit is contained in:
ingvar1995 2016-03-23 19:03:04 +03:00
parent 63dd3b1248
commit 54a9cc3de5
2 changed files with 4 additions and 5 deletions

View File

@ -378,11 +378,10 @@ class ScreenShotWindow(QtGui.QWidget):
def __init__(self): def __init__(self):
super(ScreenShotWindow, self).__init__() super(ScreenShotWindow, self).__init__()
self.setMouseTracking(True) self.setMouseTracking(True)
self.setWindowFlags(self.windowFlags() | QtCore.Qt.FramelessWindowHint | QtCore.Qt.FramelessWindowHint | QtCore.Qt.WindowStaysOnTopHint) self.setWindowFlags(self.windowFlags() | QtCore.Qt.FramelessWindowHint | QtCore.Qt.WindowStaysOnTopHint)
self.showFullScreen() self.showFullScreen()
self.setWindowOpacity(0.01) self.setWindowOpacity(0.001)
self.rubberband = QtGui.QRubberBand(QtGui.QRubberBand.Rectangle, self) self.rubberband = QtGui.QRubberBand(QtGui.QRubberBand.Rectangle, None)
self.rubberband.setWindowOpacity(1)
def mousePressEvent(self, event): def mousePressEvent(self, event):
self.origin = event.pos() self.origin = event.pos()