OK This Is Code
void MainWindow::on_pushButton_29_clicked()
{
foreach (const QSerialPortInfo&info, QSerialPortInfo::availablePorts()){
checksam=info.description();
if (checksam.contains("SAMSUNG MOBILE USB MODEM"))
{
ui.samlogs->append(info.description());
}
else
{
ui.samlogs->append("NO SAMSUNG MOBILE FOUND PLEASE CONECT YOUR PHONE");
}
{
}
}
}
void MainWindow::on_pushButton_29_clicked()
{
foreach (const QSerialPortInfo&info, QSerialPortInfo::availablePorts()){
QString checksam;
checksam=info.description();
if (checksam.contains("SAMSUNG MOBILE USB MODEM"))
{
ui.samlogs->append(info.description());
}
else
{
ui.samlogs->append("NO SAMSUNG MOBILE FOUND PLEASE CONECT YOUR PHONE");
}
{
}
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks