コード例 #1
0
 def mousePressEvent(self, event):
     if self.is_null():
         self.set_valor(QDateTime.currentDateTime())
         self.setSelectedSection(QDateEdit.DaySection)
     QDateTimeEdit.mousePressEvent(self, event)