[Qt-interest] Forced redrawing of partictular QTreeWidgetItem issue

Iurii Gordiienko hordi at ukr.net
Wed Feb 3 09:38:49 CET 2010


Hi  
  
I have a problem with updating of particular QTreeWidgetItem... Please, look to the simplest code which describe this issue. I expect the execution of QTreeWidget::drawRow after call A::updateItem(...) but really it is not happened. Why not?  
  
class A : public QTreeWidget{  
public:  
  void updateItem(QTreeWidgetItem* pi)   
  {   
    QModelIndex idx = indexFromItem(pi);   
    update(idx);   
  }   
  

    
    

protected:   
  //code for drawing item's data manually   
  virtual void drawRow( QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index )const;   
  

};  
  

    
    

Qt-4.6.1  

    
    

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100203/1a2e10de/attachment.html 


More information about the Qt-interest-old mailing list