Results 1 to 7 of 7

Thread: showing close Button(x) in QDialog

  1. #1
    Join Date
    Dec 2006
    Posts
    211
    Thanks
    27
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question showing close Button(x) in QDialog

    Hi All,

    I m using Qt 4.2.2 on my Intel Mac.
    I have a QDialog and when I run the Application this QDialog does not show the close(X) button.I donot understand why it is so?

    If any body knows then plz help me.

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: showing close Button(x) in QDialog

    some code would help to understand the problem.

  3. #3
    Join Date
    Dec 2006
    Posts
    211
    Thanks
    27
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: showing close Button(x) in QDialog

    Hi,

    Actually I have a QDialog and two text edit and three buttons.

    As you can see The dialog does not show the Colse(X) button on the upper left Corner.
    Attached Images Attached Images

  4. #4
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: showing close Button(x) in QDialog

    what are the 3 buttons in the upper left corner then?

  5. #5
    Join Date
    Dec 2006
    Posts
    211
    Thanks
    27
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question Re: showing close Button(x) in QDialog

    Hi see these buttons which r disabled.
    These r Buttons which r displayed in any window.
    Attached Images Attached Images

  6. #6
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: showing close Button(x) in QDialog

    Quote Originally Posted by vishal.chauhan View Post
    Hi see these buttons which r disabled.
    These r Buttons which r displayed in any window.

    setWindowFlags ( Qt::Popup ); set the appropriate flags http://doc.trolltech.com/4.2/qwidget...ndowFlags-prop on flag you can display or not
    button close ecc... You work on the new XCODE xcode_2.4.1_8m1910_6936315.dmg 1GB compiler package?

  7. The following user says thank you to patrik08 for this useful post:

    vishal.chauhan (4th April 2007)

  8. #7
    Join Date
    Dec 2006
    Posts
    211
    Thanks
    27
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: showing close Button(x) in QDialog

    Thanks.

    Actually by this I can remove the Disabled buttons but I want that It should show the close(X) button on the QDialog.

Similar Threads

  1. Resizing a QDialog to the content size
    By Nyphel in forum Qt Programming
    Replies: 8
    Last Post: 15th March 2007, 09:16

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.