Hello,
If I have a derived object of QWidget class and on slot function in it I have an update(). here is some pseudocode:
*.h
slot:
updateNow();
*.cpp
constructor()
{
setPalllete(QPallete(QColor(250,250,200)));
setAUtoFillBackground(true);
}
updateNow()
{
update();
}
paintEvent()
{
QPainter painter(this);
painter.drawRect(1,2,3,4);
}
So how should I don't get erased my pallete after update() call?
P.S. - Sorry for my English and only pseudocode.