Hello,
I'm designing a new custom widget (very simple, just a groupbox with some stuff in it, but since I need many copies I've decided to create a widget).

What is the right way to deal with resizing?

Right now when I resize the widget, the groupbox inside it stays the same size, which of course is not what I want. I've tried to reimplement resizeEvent to grab the event and resize the groupbox. It works, but then I can squeeze the groupbox down to size 0, which messes everything up when putting the widget inside a Layout (it gets squeezed to size 0 by the spacers).

Is there a full example of creating a custom widget and implementing it in designer?
I've looked at the "world time clock" one on the Qt site, but it's very very minimal.... for example nowhere it cites the Q_PROPERTY and Q_ENUM macros. I found out they still work in Qt4 just by cut'n'paste from the old Qt3 widget.