اینم ارورکد:{
QString srch,cr;
QFile mys("e:/mystock.txt");
if(mys.open(QIODevice::ReadOnly | QIODevice::Text)){
QTextStream out(&mys);
bool found = false;
while(out>>names){
if(srch==names)
{
ui->groupBox_3->show();
found = true;
}
if(!found){
QMessageBox msg;
msg.setText("Company Not Found");
msg.exec();
}
}
}
}
error: could not convert ‘out.QTextStream::operator>>((* & names))’ from ‘QTextStream’ to ‘bool’ while(out>>names){ ^
:n27:
چرا نمیشه؟