How can I get rid of the resize-handle in a QDialog?

Posted by Georg on Stack Overflow See other posts from Stack Overflow or by Georg
Published on 2009-02-22T17:35:20Z Indexed on 2010/04/06 7:13 UTC
Read the original article Hit count: 266

Filed under:
|

I've got the following class:

class SelectDateDialog(QDialog):
    startDate = date.today()
    endDate = date.today()

    def __init__(self, text, isInterval = False):
        QDialog.__init__(self)
        uic.loadUi("resources/SelectDate.ui", self)

Now, the dialog is resizable on Mac OS X 10.5, but it shouldn't be. It has the resize-handle in the lower right corner.

I've already tried the setSizeGripEnabled function, it didn't change anything.

How can I make it not resizable?

© Stack Overflow or respective owner

Related posts about qt

Related posts about pyqt