[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Qt2.0.1 QListViewItem::~QListViewItem() bug?
From:       Gary Meyer <gary () meyer ! net>
Date:       1999-09-11 21:57:54
[Download RAW message or body]

Basically, I:

  // listView is a QListView

  QListViewItem* qlvi = listView->currentItem();
  QListViewItem* parent = qlvi->parent();
  parent->removeItem(qlvi);
  delete qlvi;
  listView->setSelected(parent, true);

It works fine in Qt1.44.  I looked up the Qt 2.0.1 documentation and
discovered that removeItem() is half-deprecated/half-broken.

I comment out the "parent->removeItem(qlvi);" and it still core dumps on
the "delete qlvi;".

Thanks for any help.

-- Gary

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic