Results 1 to 3 of 3

Thread: window style and form close query

  1. #1
    Join Date
    Jan 2010
    Posts
    39
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default window style and form close query

    Hi all,

    I need some help on the forms.

    how can I have a form with only title and without close, min, max button?

    Qt::WindowFlags flags;
    flags = Qt::Window | Qt::FramelessWindowHint | Qt::WindowTitleHint;
    setWindowFlags(flags);

    tried this but did not work.

    Another problem is
    How can I do something on form close event? what signal should I use?

    I am using forms are Qwidgets not dialog.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: window style and form close query

    You have to use Qt::CustomizeWindowHint as well. And don't use the frameless window hint, of course.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jan 2010
    Posts
    39
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: window style and form close query

    thank. I manage to get it to work

Similar Threads

  1. close window signal
    By jano_alex_es in forum Newbie
    Replies: 5
    Last Post: 22nd May 2009, 11:10
  2. How to close parent window from child window?
    By montylee in forum Qt Programming
    Replies: 5
    Last Post: 14th October 2008, 12:40
  3. Replies: 4
    Last Post: 23rd June 2008, 18:11
  4. Message on close(x) button of Form
    By vishal.chauhan in forum Qt Programming
    Replies: 3
    Last Post: 29th January 2007, 10:39
  5. Replies: 2
    Last Post: 23rd April 2006, 02:02

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.