connect(ui
->LEdit1,
SIGNAL(textChanged
(QString)),
this,
SLOT(setLableColor
(..,.,
)));
// change lable1 color
connect(ui
->LEdit2,
SIGNAL(textChanged
(QString)),
this,
SLOT(setLableColor
(.,.,.
)));
//change lable2 color
connect(ui
->LEdit3,
SIGNAL(textChanged
(QString)),
this,
SLOT(setLableColor
(.,.,.
)));
//change lable3 color
connect(ui
->LEdit4,
SIGNAL(textChanged
(QString)),
this,
SLOT(setLableColor
(.,.,.
)));
//change lable4 color
connect(ui
->LEdit5,
SIGNAL(textChanged
(QString)),
this,
SLOT(setLableColor
(.,.,.
)));
//change lable5 color
{
//change the lable color ;
}
connect(ui->LEdit1, SIGNAL(textChanged(QString)), this, SLOT(setLableColor(..,.,))); // change lable1 color
connect(ui->LEdit2, SIGNAL(textChanged(QString)), this, SLOT(setLableColor(.,.,.))); //change lable2 color
connect(ui->LEdit3, SIGNAL(textChanged(QString)), this, SLOT(setLableColor(.,.,.))); //change lable3 color
connect(ui->LEdit4, SIGNAL(textChanged(QString)), this, SLOT(setLableColor(.,.,.))); //change lable4 color
connect(ui->LEdit5, SIGNAL(textChanged(QString)), this, SLOT(setLableColor(.,.,.))); //change lable5 color
void setLableColor(QLabel *lable, QString txt , QString color)
{
//change the lable color ;
}
To copy to clipboard, switch view to plain text mode
Bookmarks