Results 1 to 2 of 2

Thread: Remove QSizeGrip/Size Grip from a QWidget or QDialog?

  1. #1
    Join Date
    Nov 2007
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Question Remove QSizeGrip/Size Grip from a QWidget or QDialog?

    Hello,

    I'm trying to display a QDialog to the user with a few text fields and two buttons that I designed in Qt Designer. The dialog itself works just fine, but on Mac OS X the dialog contains a small size grip at the lower right corner.

    Following the Human Interface Guidlines of Mac OS X, this is wrong and the size grip should not be there.

    I tried to remove it by a) disabling it in Qt Designer, which did not work; b) remove it by calling setResizeGripsVisible(), which did not work either. I also took a look into the Window Flags example and played around with that a little bit - no luck.

    So, how do I remove that size grip from my window on Mac OS X?

    Thanks in advance!

    ~ Cheetah

  2. #2
    Join Date
    Aug 2006
    Posts
    250
    Thanks
    19
    Thanked 49 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Remove QSizeGrip/Size Grip from a QWidget or QDialog?

    By setResizeGripsVisible() I assume you mean QDialog::setSizeGripEnabled?

    You might also try setting the size policy of the dialog to QSizePolicy::Fixed for both vertical and horizontal.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.