Questions tagged «qtcore»

10
QString转换为char *
我试图通过以下方法将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(); strcpy(str,ba.data()); 您能否详细说明此方法可能存在的缺陷,或给出替代方法?
94 c++  qt  qstring  qtcore 

3
Qt:*。pro与* .pri
qmake*.pro和*.pri配置文件之间有什么区别? * .pro文件应包含哪些内容,*。pri文件应包含哪些内容?
86 qt  qmake  qtcore 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.