No, they don't.
No, they don't.
Shouldn't the lines be drawn as I move the window ? I mean, shouldn't the drawContents be called and the drawing should be updated?
Now, since we know that drawContents is not called, is there a way be which I can detect this and call repaint()
Thanks a lot for your time.
Thanks a lot
Mithin
www.mithin.in
A simple way around this is to add a child widget to the scrollview and do all the drawing in the paint event of the widget.
Qt Code:
public: protected: //... } }; //... wid = new MyWidget(viewport()); wid.resize(600, 400); //...To copy to clipboard, switch view to plain text mode
Bookmarks