Qt Code:
  1. QLabel *label = new QLabel( "Push me" );
  2. ui->[name of layout You want to place QLabel]->addWidget( label );
To copy to clipboard, switch view to plain text mode