Results 1 to 17 of 17

Thread: QCanvasPolygonalItem delete and SegFault or pure virtual call

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #10
    Join Date
    Aug 2006
    Location
    istanbul, turkey
    Posts
    42
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11
    Thanks
    2
    Thanked 4 Times in 4 Posts

    Question Re: QCanvasPolygonalItem delete and SegFault or pure virtual call

    ok, thanks for reply;
    but i can't figure out what is wrong with my little tiny code. (and this code is absolutely written to simulate the error)
    i don't mean find my errors; i mean why qt doesn't generate pure virtual call errors or segfault when i increase the Cell objects size (width or height) but if i decrease its width or height then it crushes. please check this out in provided source file, i stated the situation in comments.
    so what is wrong with this code (that leads to this error) could anybody explain me?
    moreover; i have nothing to do with QCanvas::update()
    procedure is quite simple shrink(decrease the size of) the object, delete the object and QCanvas::update() func call and it crushes.
    remember when you increase its size there is no problem! only when you decrease this happens.
    Attached Files Attached Files

Similar Threads

  1. QItemDelegate problem
    By WinchellChung in forum Newbie
    Replies: 2
    Last Post: 5th December 2007, 16:16
  2. c++, placement delete upon exception
    By stinos in forum General Programming
    Replies: 6
    Last Post: 31st October 2006, 15:38
  3. 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.