ui->lbl_cupInfo->setText("hello,good,morning,jksfsafsflkasjflksajfsjf"); ui->lbl_cupInfo->adjustSize();