rbp
17th March 2009, 02:16
hello,
I want to know how to do qDebug style string insertions. For instance I can go:
qDebug("%s is %d today", myName, myAge);
Python has a similar feature:
>>> '%s is %d today' % (myName, myAge)
It would be helpful if I could do these style of manipulations in my Qt C++ program. Is there a proper way to do this, or do I have to hack the string around to inject my content.
thanks,
Richard
I want to know how to do qDebug style string insertions. For instance I can go:
qDebug("%s is %d today", myName, myAge);
Python has a similar feature:
>>> '%s is %d today' % (myName, myAge)
It would be helpful if I could do these style of manipulations in my Qt C++ program. Is there a proper way to do this, or do I have to hack the string around to inject my content.
thanks,
Richard