Beispiel #1
0
 def changeEvent(self, event):
     if event.type() == QEvent.WindowStateChange and self.layoutWrapped:
         if self.windowState() == Qt.WindowMaximized:
             self.grid.setRowMinimumHeight(0, 0)
             self.grid.setRowMinimumHeight(2, 0)
             self.grid.setColumnMinimumWidth(0, 0)
             self.grid.setColumnMinimumWidth(2, 0)
         else:
             self.grid.setRowMinimumHeight(0, 4)
             self.grid.setRowMinimumHeight(2, 4)
             self.grid.setColumnMinimumWidth(0, 4)
             self.grid.setColumnMinimumWidth(2, 4)
     QWidget.changeEvent(event)
Beispiel #2
0
 def changeEvent(self, event):
     QWidget.changeEvent(self, event)
 def changeEvent(self, event):
     if event.type() == QEvent.WindowStateChange:
         if self.windowState() & Qt.WindowMinimized:
             self.hide()
     QWidget.changeEvent(self, event)
Beispiel #4
0
 def changeEvent(self, event):
     if event.type() in (QEvent.StyleChange, QEvent.PaletteChange):
         self.updateStyle()
     QWidget.changeEvent(self, event)
Beispiel #5
0
 def changeEvent(self, e):
     self.refresh()
     QWidget.changeEvent(self, e)