From kde-devel Sat Dec 28 07:21:10 2002 From: Pablo de Vicente Date: Sat, 28 Dec 2002 07:21:10 +0000 To: kde-devel Subject: How to update a QPainted qwidget? X-MARC-Message: https://marc.info/?l=kde-devel&m=104106013516810 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I am writing some code in which I use QPainter to draw some axis and curves on a qwidget. Now I have two basic problems: - When the axis change I try to redraw them calling update(). When doing this instead of erasing the previous content of the widget and drawing the new axis I only append the new ones. I have tried with repaint(true), and I have also used erase() before calling update() or repaint(). But none of this works. - - if I raise a window in front of the widget where I have the curves and then move the window to another place so that my widget is not covered by anything the content of the qwidget disappears. That is I loose the axis and curves I had previously drawn. With such brief description can someone tell me what I am missing to do things correctly?. thanks, Pablo de Vicente. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (GNU/Linux) iD8DBQE+DVD0SItUpHl6kJERAnuWAJ4sWgouHS5ZdCUWHz1WSV4upKmdRQCePO4r WVfhFjMqUkBiC96IRLL7sKI= =KA3j -----END PGP SIGNATURE----- >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<