Results 1 to 4 of 4

Thread: How do i remove maximize and minimize options from widgets

  1. #1
    Join Date
    Mar 2006
    Posts
    13
    Thanks
    3
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default How do i remove maximize and minimize options from widgets

    hi,
    I am using QT 3.3 and i need to remove the maximize and minimize options from the upper right corner on the title bar in the widgets that i am using.

    Please help me out!!
    Thank you,
    Regards,
    Bera.

  2. #2
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How do i remove maximize and minimize options from widgets

    set Qt::WType_Dialog flag in the constructor

  3. #3
    Join Date
    Mar 2006
    Posts
    13
    Thanks
    3
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: How do i remove maximize and minimize options from widgets

    Thanks for your quick reply......Actually i forgot to mention that i need to remove the maximize and minimize options from a QMainwindow's title bar and not from a dialog. As per our application, after a login screen, mainwindow needs to be shown. If i use WTYPE_DIALOG flag in the mainwindow's constructor, the Mainwindow is not being shown at all. If i dont use this flag, by default WTYPE_TOPLEVEL flag will be considred and Mainwindow will be shown with max and min options. So, i am stuck here. So,please help me out.
    Thanks in advance.

  4. #4
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How do i remove maximize and minimize options from widgets

    try

    Qt::WTYPE_TOPLEVEL | Qt::WType_Dialog

Similar Threads

  1. Replies: 1
    Last Post: 21st February 2009, 14:59

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.