QT Moving entire window by clicking on the menubar python -
this need in python.
this python code moving window click&drag everywhere in window expect menubar created of this guy:
#make window draggable in init self.oldpos = self.pos() def mousepressevent(self, event): #make window draggable clicking anywhere , drag self.oldpos = event.globalpos() def mousemoveevent(self, event): delta = qpoint (event.globalpos() - self.oldpos) self.move(self.x() + delta.x(), self.y() + delta.y()) self.oldpos = event.globalpos()
hope can me convert c++ code python
wiki
Comments
Post a Comment