[Interest] Start the Qt Assistant from main.cpp

Thomas Meyer public at meyer-thomas.com
Tue Feb 14 18:45:45 CET 2012


Hi,
I want to start the Qt Assistant simple from a 'main.cpp'. It goes,
but is it correct? I use the 'assistant .cpp' from the Simple Text Viewer
example and have my own '.qch' and '.qhc' files.

...
#include <QApplication>

#include "Assistant.h"

int main(int argc, char *argv[])
{
     Assistant *m_assistant = new Assistant;
     m_assistant->showDocumentation("index.html");
     return 0;
}
...

Thanks,
     Thomas Meyer



More information about the Interest mailing list