[Qt-interest] weird QTableItem behavior
R. Reucher
rene.reucher at batcom-it.net
Fri Sep 11 15:56:16 CEST 2009
On Fri, 11 Sep 2009 16:36:47 +0300, Andrei Sebastian Cimpean wrote:
> QList<QTreeWidgetItem* >items = m_ui->treeWidget->findItems("/",
> Qt::MatchRecursive | Qt::MatchExactly,0); QList<QTreeWidgetItem*
> >selectedShit = m_ui->treeWidget->selectedItems();
> selectedShit[0]->setSelected(false);
> delete selectedShit[0];
^^^ I'm really not sure I can follow on what you want to do, but THIS
isn't a good idea. If you really want to remove the first selected item,
use takeItem() first, then delete it.
HTH, René
--
René Reucher
rene.reucher at batcom-it.net
http://www.batcom-it.net/
Love your enemies: they'll go crazy trying to figure out what you're up
to.
More information about the Qt-interest-old
mailing list