Results 1 to 4 of 4

Thread: signals when closing QMainWindow

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2008
    Location
    Bengaluru
    Posts
    144
    Thanks
    8
    Thanked 7 Times in 7 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: signals when closing QMainWindow

    One solution for what you want is,

    Make the window/widget to modality, such that users cannot able to close the mainwindow until you close the other.

    Check Qt::WindowModality.

    And also,
    I have implemented in my application, when you hit,

    1. double click the upper-left corner of a QMainWindow, or
    2. left click the upper-left corner of a QMainWindow, then select Close()

    It calls closeEvent(...). you need to relook into its implementation.

  2. The following user says thank you to nikhilqt for this useful post:

    qmonkey (7th January 2010)

Similar Threads

  1. How to handle 2 QmainWindow closing problems
    By narendra in forum Qt Programming
    Replies: 1
    Last Post: 16th December 2009, 14:24
  2. conflict between boost signals and Qt signals
    By high_flyer in forum Qt Programming
    Replies: 2
    Last Post: 26th June 2008, 09:46
  3. QThread and signals (linux/UNIX signals not Qt Signals)
    By Micawber in forum Qt Programming
    Replies: 1
    Last Post: 28th November 2007, 22:18
  4. Problem closing a QMainWindow in Qt4.2
    By ian in forum Qt Programming
    Replies: 11
    Last Post: 17th October 2006, 00:49
  5. run function before closing QMainWindow
    By raphaelf in forum Newbie
    Replies: 1
    Last Post: 31st August 2006, 09:21

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.