[Qt-interest] Removing the QListWidget Item

Yuvaraj R yuvaraj at ongobiz.com
Mon Jul 27 14:09:30 CEST 2009


Hi All

 I am facing problem with removing item from QListWidget.

I am trying with

for(int i=0; i< m_ui->listWidget->count();i++)

{

qDebug() << "dropping ";

if(user == m_ui->listWidget->item(i)->text())

{

QListWidgetItem *item = m_ui->listWidget->item(i);

qDebug() << item->text();

qDebug() << "drop";

m_ui->listWidget->removeItemWidget(item);

qDebug() << "Removed";

return;

}

 i don't get any errors..

Please help me to solve this issue


Thanks


Yuvaraj R
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090727/d49150ea/attachment.html 


More information about the Qt-interest-old mailing list