Yes the signature is correct, I even directly copied the function from qtreeview.h, here is the reimplentation:
{
public:
~ContactView() {};
protected:
{
}
{
}
};
class ContactView : public QTreeView
{
public:
ContactView(QWidget *parent = 0) : QTreeView(parent) {}
~ContactView() {};
protected:
void paintEvent(QPaintEvent *event)
{
QTreeView::paintEvent(event);
}
void drawTree(QPainter *painter, const QRegion ®ion) const
{
QMessageBox::information(0, QString("Draw Tree"), QString("Called"));
QTreeView::drawTree(painter, region);
}
};
To copy to clipboard, switch view to plain text mode
Edit: Oh thats other thing, thanks. I will try them tomorrow.
Bookmarks