And why cant u use it like -
Qt Code:
{ painter.drawPixmap(,,,,,,); painter.some_painting_stuff1(); painter.some_painting_stuff2(); }To copy to clipboard, switch view to plain text mode
Is there some problem or restriction in doing so ??
And why cant u use it like -
Qt Code:
{ painter.drawPixmap(,,,,,,); painter.some_painting_stuff1(); painter.some_painting_stuff2(); }To copy to clipboard, switch view to plain text mode
Is there some problem or restriction in doing so ??
Because for some odd reason, I had it in my head to create the pixmap within the paintEvent, then display it with the new painter(this) painting on the widget. Of course I have code that detects when the pixmap needs to be redrawn. 99% of the time it doesn't need to be redrawn so it should just copy the previous one onto the widget.
I was having some weird problems and I wanted to know if what I was doing was ok.
I have since changed the code around to generate the pixmap in a separate method and have had better results so obviously what I was doing was causing the weird problem. I just wanted to know why?![]()
Bookmarks