You can mimic a widget by using QStyle API. It has a number of draw* methods for drawing widgets. But it's only drawing.