Results 1 to 2 of 2

Thread: Crashing in a slot due to message box

  1. #1
    Join Date
    May 2006
    Posts
    58
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Crashing in a slot due to message box

    In August I posted a problem with slots crashing if they took too long to return:

    http://www.qtcentre.org/forum/f-qt-p...lot-15547.html

    I took Wysota's suggestion and posted an event for my expensive operation, and this worked around the problem.

    But in other slots signaled by QHTTP RequestComplete, I am popping up a messagebox to the user letting them know that their download is complete. If they don't click this messagebox within about 30 seconds or so, the program crashes (the cause being identical to the aforementioned problem)

    1) Am I not supposed to popup messageboxes in slots?

    2) If it's OK to do this, are there certain types of slots where blocking behavior is unacceptable? Is the structure of my code just wrong? Should I be posting events any time I want to pop up a messagebox?

    I am really confused here...

  2. #2
    Join Date
    Jul 2007
    Posts
    56
    Thanks
    6
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Crashing in a slot due to message box


Similar Threads

  1. How to Compile VTKDesigner2 with Qt?
    By alfredoaal in forum Newbie
    Replies: 0
    Last Post: 5th September 2008, 06:34
  2. treewidget and a message system
    By alisami in forum Qt Programming
    Replies: 7
    Last Post: 27th July 2008, 19:05
  3. QStandardItemModel insertRow crashing
    By munna in forum Qt Programming
    Replies: 1
    Last Post: 27th June 2008, 12:55
  4. Problem When Creating my own Slot
    By Fatla in forum Qt Programming
    Replies: 12
    Last Post: 6th June 2008, 15:44

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.