C++ (Qt)QWidget * pWidget = new QWidget(); QPushButton * pBtn = new QButton( pWidget );pBtn->setGeometry();pBtn->setText(); и т.д.