Results 1 to 8 of 8

Thread: [PyQt4] Want to connect a window's close button

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2008
    Posts
    26
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: [PyQt4] Want to connect a window's close button

    Quote Originally Posted by spirit View Post
    did you also read about QWidget::closeEvent?
    ooops, yes, you did.
    lol yeah, my solution to the op's question from yesterday was in the closeEvent code

  2. #2
    Join Date
    Apr 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: [PyQt4] Want to connect a window's close button

    If my SubWindow in the above give example is not a separate class and child of the MainWindow how should I use the closeEvent of SUbWindow.

    Thanks

    Jothy

Similar Threads

  1. How to hide Close Button "X" on Widget ?
    By merry in forum Qt Programming
    Replies: 8
    Last Post: 25th January 2020, 08:03
  2. Disable Close button (X) of a QDialog
    By BrainB0ne in forum Qt Programming
    Replies: 29
    Last Post: 8th December 2009, 17:01
  3. QDialog not showing close button on Mac
    By manojmka in forum Qt Programming
    Replies: 2
    Last Post: 17th September 2008, 12:56
  4. Replies: 5
    Last Post: 21st April 2008, 07:54
  5. Replies: 2
    Last Post: 5th February 2007, 17:42

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.