It is working fine. I am forgotten to call viewport() and paintEvent inside paintEvent(). Thanks for your kind help.Qt Code:
{ painter.setPen(Qt::blue); painter.drawLine(rect().topLeft(),rect().bottomRight()); }To copy to clipboard, switch view to plain text mode
Bookmarks