screenshot rect fix
This commit is contained in:
parent
63dd3b1248
commit
54a9cc3de5
@ -378,11 +378,10 @@ class ScreenShotWindow(QtGui.QWidget):
|
||||
def __init__(self):
|
||||
super(ScreenShotWindow, self).__init__()
|
||||
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.setWindowOpacity(0.01)
|
||||
self.rubberband = QtGui.QRubberBand(QtGui.QRubberBand.Rectangle, self)
|
||||
self.rubberband.setWindowOpacity(1)
|
||||
self.setWindowOpacity(0.001)
|
||||
self.rubberband = QtGui.QRubberBand(QtGui.QRubberBand.Rectangle, None)
|
||||
|
||||
def mousePressEvent(self, event):
|
||||
self.origin = event.pos()
|
||||
|
@ -1250,4 +1250,4 @@ QListWidget QPushButton
|
||||
QPushButton:hover
|
||||
{
|
||||
background-color: #4A4949;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user