Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions |
The QAssistantClient class provides a means of using Qt Assistant as an application's help tool. More...
#include <qassistantclient.h>
Inherits QObject.
Using Qt Assistant is simple: Create a QAssistantClient instance, then call showPage() as often as necessary to show your help pages. When you call showPage(), Qt Assistant will be launched if it isn't already running.
The QAssistantClient instance can open (openAssistant()) or close (closeAssistant()) Qt Assistant whenever required. If Qt Assistant is open, isOpen() returns TRUE.
One QAssistantClient instance interacts with one Qt Assistant instance, so every time you call openAssistant(), showPage() or closeAssistant() they are applied to the particular Qt Assistant instance associated with the QAssistantClient.
When you call openAssistant() the assistantOpened() signal is emitted. Similarly when closeAssistant() is called, assistantClosed() is emitted. In either case, if an error occurs, error() is emitted.
This class is not included in the Qt library itself. To use it you must link against libqassistantclient.so (Unix) or qassistantclient.lib (Windows), which is built into INSTALL/lib if you built the Qt tools (INSTALL is the directory where Qt is installed).
See also "Adding Documentation to Qt Assistant" in the Qt Assistant manual.
The assistant client object is a child of parent and is called name.
This signal is emitted when the connection to Qt Assistant is closed. This happens when the user exits Qt Assistant, or when an error in the server or client occurs, or if closeAssistant() is called.
This signal is emitted when Qt Assistant is open and the client-server communication is set up.
See also assistantClosed().
This signal is emitted if Qt Assistant cannot be started or if an error occurs during the initialisation of the connection between Qt Assistant and the calling application. The msg provides an explanation of the error.
Returns TRUE if Qt Assistant is open; otherwise returns FALSE. See the "open" property for details.
See also assistantOpened().
If Qt Assistant hasn't been opened, this function will open it.
Example: helpsystem/mainwindow.cpp.
This property holds whether Qt Assistant is open.
Get this property's value with isOpen().
This file is part of the Qt toolkit. Copyright © 1995-2003 Trolltech. All Rights Reserved.
Copyright © 2003 Trolltech | Trademarks | Qt version 3.2.0b2
|