The procedure has been explained in the documentation of the Designer: Using a Component in Your Application.
(Pay attention to the single and/or the multiple inheritance approach. The direct approach is not recommended.)

You could also explore the demos and examples shipped with Qt. There are several applications that use either single or multiple inheritance approach.