Hey..I used this,but whatever i give as input.. blue, white,yellow..it sets it as black itself..
Qt Code:
void MainWindow::on_Set_clicked() { QString s; s=ui->bcolor->text();//textbox from wher i get input from user qApp->setStyleSheet("QLineEdit { background-color:s }"); }To copy to clipboard, switch view to plain text mode
Bookmarks