I hope to log each function name by using __PRETTY_FUNCTION__. But I do not know how to convert it to a QString. Please give some helps!
Thanks in advance!
I hope to log each function name by using __PRETTY_FUNCTION__. But I do not know how to convert it to a QString. Please give some helps!
Thanks in advance!
use Q_FUNC_INFO instead. It returns const char * and which is then automatically converted to QString when it is needed or you can convert it explicitly: QString(Q_FUNC_INFO)
I would like to be a "Guru"
Useful hints (try them before asking):
- Use Qt Assistant
- Search the forum
If you haven't found solution yet then create new topic with smart question.
Bookmarks