Hi,

I'm trying to create a custom dialog with a border width and color. This dialog I want it to be inherited by others, so other developers don't have to deal with the border or other decorations we would need down the road.

My first approach is to create a MyDialog : public QDialog, private Ui::MyCustomDialog (multiple inheritance way), since I want to be able to add stuff to it. One thing I think it should have is a place where to stick child widgets into. For example, an empty layout, where I would set the child widget into, so it resizes properly. The problem is that I have no idea on how to make ANY child widget to be inserted into the layout automatically.

Any ideas? Thanks.
-Daniel