[Qt-interest] How to get a string with the current function name?

J-P Nurmi jpnurmi at gmail.com
Tue Nov 30 18:40:32 CET 2010


On Tue, Nov 30, 2010 at 7:32 PM, Marcelo Magno T. Sales
<mmtsales at gmail.com> wrote:
> Hello,
>
> Is it possible to get the current function/method name in a string, for
> debugging purposes? How?

Hi,

Perhaps Q_FUNC_INFO suits your needs?

http://doc.qt.nokia.com/4.7/qtglobal.html#Q_FUNC_INFO

--
J-P Nurmi



More information about the Qt-interest-old mailing list