[PyQt] Remove resize arrow

Hans-Peter Jansen hpj at urpla.net
Thu Dec 9 20:22:53 GMT 2010


On Thursday 09 December 2010, 20:33:47 Hugo Leveille wrote:
> I have a mainwindow that I would like to remove the resize handle 
> on the bottom right so that the window is not resizable.  

	self.statusBar().setSizeGripEnabled(False)

but that might not sufficient. Check out the widgets/windowflags.py 
example, if you find a flag combination with the desired effects. 
For a general solution, you might want to try 
	
	self.setFixedSize(self.sizeHint())

Pete


More information about the PyQt mailing list