Results 1 to 2 of 2

Thread: how to get signal (Qt:: popup )

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2013
    Posts
    2
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default how to get signal (Qt:: popup )

    hai,
    i need to get initimation when the widget get closed.

    i am using Qt:: popup widget, using Alt+f4 the widget get closed.

    so i need any signal when the widget get closed.

    plese aswer me !

    thanks

  2. #2
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: how to get signal (Qt:: popup )

    There is no such signal in QWidget class, so you have to reimplement closeEvent and emit a custom signal from there, or install event filter on the popup window and check for QEvent::Close. Alternatively, you can connect to "destroyed" signal, but it is emitted only when the object is deleted (if the popup has Qt::WA_DeleteOnClose flag, it will be deleted after it accepts closeEvent).

  3. The following user says thank you to stampede for this useful post:

    sathees (15th May 2014)

Similar Threads

  1. Replies: 12
    Last Post: 1st May 2011, 11:38
  2. The "Signal received" death popup
    By CrazyDave in forum Newbie
    Replies: 1
    Last Post: 2nd October 2010, 00:12
  3. How to make a popup widget that looks like a popup?
    By Olivier Berten in forum Qt Programming
    Replies: 9
    Last Post: 6th June 2010, 13:19
  4. QWidget (Qt::Popup), Signal when close or lost focus
    By Tondog in forum Qt Programming
    Replies: 1
    Last Post: 23rd April 2010, 08:17
  5. Replies: 3
    Last Post: 17th May 2009, 20:17

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.