Results 1 to 3 of 3

Thread: Execute event in calling window

  1. #1
    Join Date
    Aug 2010
    Posts
    28
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Execute event in calling window

    I have a window a that calls window b. Whne window b is closed, I want to call an event in window a that will clear the screen and ready it for input again. Can I do this?

  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: Execute event in calling window

    One of possible solutions - reimplement closeEvent in window b, in this closeEvent emit a clear() signal connected to clearScreen() slot in window a.

  3. #3
    Join Date
    Aug 2010
    Posts
    28
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Execute event in calling window

    That worked exactly as I needed. Thank you.

Similar Threads

  1. QAbstractItemView not calling mouse move event function
    By sagirahmed in forum Qt Programming
    Replies: 0
    Last Post: 5th July 2010, 10:26
  2. Reading a file/ and calling another window
    By Gummie in forum Newbie
    Replies: 3
    Last Post: 19th August 2009, 13:07
  3. execute sth before program exits (user closes window)
    By donglebob in forum Qt Programming
    Replies: 6
    Last Post: 9th December 2008, 23:24
  4. calling event through in loop
    By raghvendramisra in forum Qt Programming
    Replies: 3
    Last Post: 28th February 2008, 05:41
  5. Calling destructors on close event
    By gyre in forum Newbie
    Replies: 22
    Last Post: 27th November 2007, 19:35

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.