Results 1 to 2 of 2

Thread: takeTopLevelItem - removing last row from treeWidget & app crash

  1. #1
    Join Date
    Feb 2010
    Location
    Poland
    Posts
    27
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default takeTopLevelItem - removing last row from treeWidget & app crash

    hi.

    i have some problem. why removing last row from treeWidget using takeTopLevelItem() make app crash? if i want to remove different items everything it's OK. problem occurs only in this case.

    thanks in advance for help.

  2. #2
    Join Date
    Feb 2010
    Location
    Poland
    Posts
    27
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: takeTopLevelItem - removing last row from treeWidget & app crash

    nevermind, problem is solved. in another function I was trying to change label text to currently checked row from treeWidget, but treeWidget was empty. sorry for the problem

Similar Threads

  1. Crash on removing a row
    By inktomi in forum Qt Programming
    Replies: 10
    Last Post: 17th June 2010, 12:59
  2. removing an item from a treeWidget
    By user in forum Qt Programming
    Replies: 0
    Last Post: 13th November 2008, 01:19
  3. expand a treeWidget
    By mattia in forum Newbie
    Replies: 6
    Last Post: 6th December 2007, 13:24
  4. How to set the sizehint for treeWidget
    By santosh.kumar in forum Qt Programming
    Replies: 1
    Last Post: 12th June 2007, 11:35
  5. Painting TreeWidget
    By VireX in forum Qt Programming
    Replies: 9
    Last Post: 9th May 2007, 08:36

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.