Den 09-12-2011 10:31, kai.koe...@nokia.com skrev: > Syntax could e.g. be: > > qLog(QWidget).location(__FILE__, __LINE__)<< "Created"<< name; > > (Maybe __FILE__ , __LINE__ can be automatically retrieved by yet another > macro? Not sure ...).
You can only do that if qLog is a macro itself. Alternatively, it could be done with one of my long standing christmas wishes: qBacktrace() :) Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire Contact me if you need expert Qt help http://www.fioniasoftware.dk _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest