I have a class, MyTree
, which derived from QTreeWidget
and
void MyTree::paintEvent(QPaintEvent *event)
{
QPainter painter(this);
}
causes to raise the following issue,
QWidget::paintEngine: Should no longer be called
QPainter::begin: Paint device returned engine == 0, type: 1
Could someone please help me to solve the problem?