Results 1 to 18 of 18

Thread: Previous frame inner to this frame(corrupt stack?)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #13
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Previous frame inner to this frame(corrupt stack?)

    Quote Originally Posted by coralbird
    even hide() and show()?
    Yes.
    I can do it in MFC.
    This is not MFC. GUI operations are not thread safe (especially in Qt3). Use custom events to post a proper event to the main thread instead.
    In your case this is probably as simple as
    Qt Code:
    1. QApplication::postEvent(mywindow, new QShowEvent());
    To copy to clipboard, switch view to plain text mode 
    .

    BTW. Does it make sense to issue "hide()" from within closeEvent? What do you need it for? close event hides the widget by itself... Just remember to call its base class implementation.

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

    coralbird (28th April 2006)

Similar Threads

  1. Previous frame inner to this frame(corrupt stack?)
    By coralbird in forum Qt Programming
    Replies: 1
    Last Post: 28th May 2007, 01:35
  2. Replies: 16
    Last Post: 7th March 2006, 15:57

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.