char* chRead; QString isRead; //фаил загрузки примененных сейчас данных QString D_path = "C:/WORK/"; QString D_format = "bin"; isRead = dlg.getOpenFileName(this,trUtf8("Открываем ДАМПы RE"),D_path,trUtf8("DUMP(*.%1)").arg(D_format)); char* chRead2 = isRead.toAscii().data(); //перевод QString в char
differs from
char* chRead; chRead = "C:/Works/contr_glsso1/DUMP/SK0_20140305_192834_384.bin";
The result is different. I do not understand what the problem is - qDebug
displays the same thing.
chRead C:/Works/contr_glsso1/DUMP/SK0_20140305_192834_384.bin
qDebug
inqDebug
? Why do you assignchRead
some value by hand? Try to make a minimum workable example and follow the principle: did - what do you want to get? - what got - user1056837