[plcno->text = text]
is this correct way to print the text from string? or ui->plcno->text()=text
Uhm, how about
ui->plcno->setText(text);
ui->plcno->setText(text);
To copy to clipboard, switch view to plain text mode
[if(n= "PLCName")]
is this correct way to check the condition?
No. The equality operator is ==. This is an assignment. Your check should be
if (n == "PLCName") {
}
if (n == "PLCName") {
}
To copy to clipboard, switch view to plain text mode
Next time, use code tags around your code. Also you should read a bit about C and C++ coding. You are going to get yourself stuck if you don't (you have already).
Bookmarks