我得到一个QString代表QLineEdit中的一个目录。现在我想检查这个目录中是否存在某个文件。但如果我尝试这与os.path.exists和os.path.join和惹上麻烦时,德国的变音符号出现在目录路径: #the direcory coming from the user input in the QLineEdit
#i take this QString to the local
我试图通过以下方法将QString转换为char *类型,但它们似乎不起作用。 //QLineEdit *line=new QLineEdit();{just to describe what is line here}
QString temp=line->text();
char *str=(char *)malloc(10);
QByteArray ba=temp.toLatin1(