MainWindow::MainWindow( QWidget * parent, Qt::WFlags f)
#ifdef Q_OS_WIN32
:
QMainWindow(parent, f), mManual( new QAssistantClient( "", this ) )
#else
:
QMainWindow(parent, f), mManual( new QAssistantClient( "./assistant", this ) )
#endif
mManual->setObjectName( "mManual" );
#ifdef Q_OS_WIN32
mManual->setArguments( QStringList() << "-profile" << "./docs/html/russian/manual.adp" );
#else
mManual->setArguments( QStringList() << "-profile" << "../docs/html/"+QLocale::languageToString( QLocale::system().language() )+"/manual.adp" );
#endif
Или где находится Asisstant....
connect( ui.actionHelp, SIGNAL( triggered() ), this, SLOT( slotHelp() ) );
// Или другими способами
файл manual.adp
<!DOCTYPE DCF>
<assistantconfig version="3.2.0">
<profile>
<property name="name">manual</property>
<property name="title">Simple Text Viewer</property>
<property name="applicationicon">./images/handbook.png</property>
<property name="startpage">./html/index.html</property>
<property name="aboutmenutext">About SQL Programm</property>
<property name="abouturl">./about.txt</property>
<property name="assistantdocs">.</property>
</profile>
<DCF ref="./html/index.html" icon="./images/handbook.png" title="Simple Text Viewer">
<section ref="./html/findfile.html" title="Find File">
<keyword ref="./html/index.html">Display</keyword>
<keyword ref="./html/index.html">Rich text</keyword>
<keyword ref="./html/index.html">Plain text</keyword>
<keyword ref="./html/findfile.html">Find</keyword>
<keyword ref="./html/findfile.html">File menu</keyword>
<keyword ref="./html/filedialog.html">File name</keyword>
<keyword ref="./html/filedialog.html">File dialog</keyword>
<keyword ref="./html/wildcardmatching.html">File globbing</keyword>
<keyword ref="./html/wildcardmatching.html">Wildcard matching</keyword>
<keyword ref="./html/wildcardmatching.html">Wildcard syntax</keyword>
<keyword ref="./html/browse.html">Browse</keyword>
<keyword ref="./html/browse.html">Directory</keyword>
<keyword ref="./html/openfile.html">Open</keyword>
<keyword ref="./html/openfile.html">Select</keyword>
<section ref="./html/filedialog.html" title="File Dialog" />
<section ref="./html/wildcardmatching.html" title="Wildcard Matching" />
<section ref="./html/browse.html" title="Browse" />
</section>
<section ref="./html/openfile.html" title="Open File" />
</DCF>
</assistantconfig>
А manual.adp кряцаем ручками...
добавлено спустя 1 минуту: Описалово присутствует в книгах по версии 3.3.х и не изменялось в версии 4.х