Results 1 to 3 of 3

Thread: Rarely crushing application when deleting widget

  1. #1
    Join Date
    May 2008
    Location
    Kiev, Ukraine
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Rarely crushing application when deleting widget

    I have a widget, that aggregate QTimer and QHttp objects. On timer's event there is some data exchange.
    Problem in that at asynchronous removal the widget, application takes off. There is it seldom enough. I tried to cause methods QTimer::stop(), QHttp::abort() before removal - does not help.
    How must I correctly delete my widget?

  2. #2
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    517
    Thanks
    21
    Thanked 66 Times in 62 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Rarely crushing application when deleting widget

    please provide the relevant code

  3. #3
    Join Date
    Dec 2006
    Posts
    849
    Thanks
    6
    Thanked 163 Times in 151 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Rarely crushing application when deleting widget

    without code: just guesswork
    try deleteLater() instead

Similar Threads

  1. QDockWidget inside another widget in the center?
    By Antebios in forum Qt Programming
    Replies: 1
    Last Post: 16th February 2010, 07:06
  2. Problem building application with custom widget
    By Uthar in forum Installation and Deployment
    Replies: 6
    Last Post: 19th January 2009, 17:57
  3. Overlapping Widgets and the Application
    By csvivek in forum Qt Programming
    Replies: 1
    Last Post: 2nd May 2008, 16:32

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.