Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

Tracing Trolltech-Qt Classes

Purpose

If you are building an application that uses the Qt library, LobTraceStream provides an additional class LobTraceStreamQt which eases the tracing of the most common Qt classes.

LobTraceStreamQt overrides LobTraceStream.

To enable Qt tracing,

Example

  QStringList mySList;
  [...]
  LOB_TRACE(EX5DLG, DEBUG) << "mySList = " << mySList << lt_endl;

will generate the following output:

  1-dec-2002 23:35:41   TRACE   EX5DLG: "mySList = {{string_1}{string_2}{string_3}}" [example5Dlg.cpp:76]

or in XML format:

  <LobTrace module="EX5DLG" level="TRACE" date=" 1-dec-2002 23:34:39" line="76" file="example5Dlg.cpp">
      <text>QStringList m_stringlist = </text>
      <QStringList count="3">
          <string>string_1</string>
          <string>string_2</string>
          <string>string_3</string>
      </QStringList>
  </LobTrace>


Generated on Sun Dec 15 23:17:22 2002 for LobTraceStream by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001