thanks j-p,
I'm not seeing anything in the graphicsview's with:
{
painter->setPen(border);
painter->drawRect(10,10,100,300);
}
void myForm::drawForeground(QPainter *painter, const QRectF &rect)
{
QPen border(QColor(200,100,40));
painter->setPen(border);
painter->drawRect(10,10,100,300);
}
To copy to clipboard, switch view to plain text mode
It compiles, but I'm not seeing any rectangle being drawn. The other thing I'm worried about is that I currently have more then 1 graphics view in this class. I only want this drawForeground function to run for one of them, is that do-able? Also, is there a way to call this function whenever I need the rectangle to be updated?
Bookmarks