sabeesh
27th September 2007, 06:47
hi,
I am facing a problum,
I declare a variable like this in QT.3.2
const QString &node_name
qDebug(">> MyFunction::MYFunction(%s)", (const char *)node_name);
and it is working. But When I copy this line into QT4.3 and make, then it display one error like this,
error: invalid cast from type ‘const QString’ to type ‘const char*’
why? How can I solve this?
please help me....
I am facing a problum,
I declare a variable like this in QT.3.2
const QString &node_name
qDebug(">> MyFunction::MYFunction(%s)", (const char *)node_name);
and it is working. But When I copy this line into QT4.3 and make, then it display one error like this,
error: invalid cast from type ‘const QString’ to type ‘const char*’
why? How can I solve this?
please help me....