[Qt-interest] Adding a paint event to a Designer widget

Phil phillor at telstra.com
Tue Dec 23 03:00:09 CET 2008


Thank you for reading this.

I'd like to add a paint event to a class that is based on a Designer generated 
widget. I have used Designer to build a main window and then have added a 
frame widget on top of the main window. I'd like to paint in that frame 
widget.

Using Kdevelop, I have subclassed the main window and painting on the main 
window is not a problem but I cannot see I can paint on the frame. It wasn't a 
problem with Qt3 either, but things have changed.

Designer provides a pointer to the frame. How do I use this pointer in a 
derived class and include a paint event for the frame?
 
-- 
Regards,
Phil.



More information about the Qt-interest-old mailing list