[PyQt] Remove resize arrow

Baz Walter bazwal at ftml.net
Thu Dec 9 20:01:06 GMT 2010


On 09/12/10 19:33, 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.

you can remove the resize handle with:

     mainwindow.statusBar().setSizeGripEnabled(False)

but that won't make the window unresizable.

to do that you could simply set the window to a fixed size:

     mainwindow.setFixedSize(600, 400)


More information about the PyQt mailing list