QGraphics paints custom widget differently in paintEvent than resizeEvent and vice-versa
I have written code for my graph and it works fine, but when I need to resize it, problems start.
Resize event doesn't fit my QGraphicScene to QGraphic开发者_运维技巧sView, but same code in paint event works fine.
I can't use paint event, 'cause it makes recursive painting in symbian(It works fine in desktop).
Resize event works fine if I resize window after first run, but I wan't to fit scene in my view from first run to end of program.
Here is pics of resizeEvent:
and paintEvent:
Both event's have same code inside.
Thanks in advance.
精彩评论