Hi
I have designed a gui in designer and I need to re-implement the paint event for a label. What is the best way of doing this?
Regards
Hi
I have designed a gui in designer and I need to re-implement the paint event for a label. What is the best way of doing this?
Regards
Subclass QLabel in lets say MyLabel. Then use MyLabel "normaly" in the designer by promoting the widget. (right click -> promote: ther insert mylabel.h etc.)
If you want full preview you have to code a plugin for the designer.
Thanks
Does I have to declare the subclass MyLabel in a separate header file? I'd rather not do that. Is there an alternative method?
Thanks
Hi
I'd like to declare it in the subclass of my gui. But that does not seem to work.
Thanks
You can declare it everywhere you wont, but as for good coding style: each class has its own *.h and *.cpp.
Bookmarks