Yes my QThread subclass emit signals. When i use widget with setItemWidget() it happens but works fine if i do not use cell widget item.
QTreeWidgetItem *item = new QTreeWidgetItem(_pView);
//this works
item->setText(0,url);
item->setTextColor(0,QColor(Qt::blue) );
//but this causes the problem.
QLabel * widget = new QLabel(url,_pView);
widget->setCursor(Qt::PointingHandCursor);
_pView->setItemWidget(item,0, url);
Thanks.![]()




Reply With Quote

Bookmarks