Results 1 to 3 of 3

Thread: Execute event in calling window

Hybrid View

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

    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
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanked 342 Times in 324 Posts

    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
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    1

    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, 11:26
  2. Reading a file/ and calling another window
    By Gummie in forum Newbie
    Replies: 3
    Last Post: 19th August 2009, 14:07
  3. execute sth before program exits (user closes window)
    By donglebob in forum Qt Programming
    Replies: 6
    Last Post: 10th December 2008, 00:24
  4. calling event through in loop
    By raghvendramisra in forum Qt Programming
    Replies: 3
    Last Post: 28th February 2008, 06:41
  5. Calling destructors on close event
    By gyre in forum Newbie
    Replies: 22
    Last Post: 27th November 2007, 20: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
  •  
Qt is a trademark of The Qt Company.