Painting should be done only in paintEvent() function or other functions called from paintEvent().When I call my draw function (outside QFrame's paintevent),
BTW QPainter has to created with QWidget/QFrame as parent
Painting should be done only in paintEvent() function or other functions called from paintEvent().When I call my draw function (outside QFrame's paintevent),
BTW QPainter has to created with QWidget/QFrame as parent
Last edited by Santosh Reddy; 29th August 2013 at 20:44.
When you know how to do it then you may do it wrong.
When you don't know how to do it then it is not that you may do it wrong but you may not do it right.
tesmai4 (30th August 2013)
Bookmarks