QAssistantClient(3qt)
π NAME π
QAssistantClient β the lil cutie that lets you use Qt Assistant as your app's help tool π
β¨ SYNOPSIS β¨
#include <qassistantclient.h>
Inherits QObject.
π Public Members
QAssistantClient ( const QString & path, QObject * parent = 0, const
char * name = 0 )
~QAssistantClient ()
bool isOpen () const
void setArguments ( const QStringList & args )
π Public Slots
virtual void openAssistant ()
virtual void closeAssistant ()
virtual void showPage ( const QString & page )
π£ Signals
void assistantOpened ()
void assistantClosed ()
void error ( const QString & msg )
π¦ Properties
bool open - whether Qt Assistant is open (read only)
πΈ DESCRIPTION πΈ
okay so the QAssistantClient class is literally your whole vibe for using Qt Assistant as an application's help tool. no cap.
Using Qt Assistant is simple: make a QAssistantClient instance, then call showPage() as many times as you need to show your help pages. and bestie, when you call showPage(), Qt Assistant gets launched automatically if it isn't already running. iconic behaviour honestly π
Your QAssistantClient instance can open (openAssistant()) or close (closeAssistant()) Qt Assistant whenever it wants. And if Qt Assistant is open, isOpen() returns TRUE. periodt.
One QAssistantClient instance talks to exactly one Qt Assistant instance β so every single time you call openAssistant(), showPage() or closeAssistant(), they get applied to that particular Qt Assistant instance that's associated with your QAssistantClient. one-to-one, monogamous, no sharing π«Ά
When you call openAssistant(), the assistantOpened() signal gets emitted. same deal when closeAssistant() is called β assistantClosed() pops off. And in either case, if an error happens, error() is emitted. π
lowkey important: this class is not included in the Qt library itself. to use it you must link againstlibqassistantclient.a(Unix) orqassistantclient.lib(Windows), which gets built intoINSTALL/libif you built the Qt tools (INSTALLis the directory where Qt is installed). π
If you use qmake, then you can simply add the following line to your pro file:
LIBS += -lqassistantclient
See also "Adding Documentation to Qt Assistant" in the Qt Assistant manual. π
π§ MEMBER FUNCTION DOCUMENTATION π§
QAssistantClient::QAssistantClient ( const QString & path, QObject * parent = 0, const char * name = 0 )
Constructs an assistant client object. The path specifies the path to the Qt Assistant executable. If path is an empty string, the system path (%PATH% or $PATH) is used. π
The assistant client object is a child of parent and is called name.
QAssistantClient::~QAssistantClient ()
Destroys the assistant client object and frees up all allocated resources. bye bestie, clean exit, no loose ends β¨
void QAssistantClient::assistantClosed () [signal]
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. π
void QAssistantClient::assistantOpened () [signal]
This signal is emitted when Qt Assistant is open and the client-server communication is set up. we love a successful handshake π«Ά
void QAssistantClient::closeAssistant () [virtual slot]
Use this function to close Qt Assistant.
See also assistantClosed().
void QAssistantClient::error ( const QString & msg ) [signal]
This signal is emitted if Qt Assistant cannot be started, or if an error occurs during the initialization of the connection between Qt Assistant and the calling application. The msg provides an explanation of the error. π
bool QAssistantClient::isOpen () const
Returns TRUE if Qt Assistant is open; otherwise returns FALSE. See the open property for details. π
void QAssistantClient::openAssistant () [virtual slot]
This function opens Qt Assistant and sets up the client-server communication between the application and Qt Assistant. If it is already open, this function does nothing. If an error occurs, error() is emitted.
See also assistantOpened().
void QAssistantClient::setArguments ( const QStringList & args )
Sets the command line arguments used when Qt Assistant is started to args. π
void QAssistantClient::showPage ( const QString & page ) [virtual slot]
Call this function to make Qt Assistant show a particular page. The page is a filename (e.g. myhelpfile.html). See "Adding Documentation to Qt Assistant" in the Qt Assistant manual for further information. π
ngl, if Qt Assistant hasn't been opened yet, this function will do nothing. You can useisOpen()to figure out whether Qt Assistant is up and running, or you can connect to theasssistantOpened()signal. (yes bestie, that's exactly how it's spelled in the docs, don't come for me π)
See also open and assistantOpened().
Example: helpsystem/mainwindow.cpp.
π Property Documentation
bool open
This property holds whether Qt Assistant is open.
Get this property's value with isOpen(). π¦
π₯ SEE ALSO π₯
π COPYRIGHT π
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. β
π AUTHOR π
Generated automatically from the source code. (not me, a whole machine did this π )
π BUGS π
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. π«Ά
The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. π
If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qassistantclient.3qt) and the Qt version (3.3.8). πΈ
and that's the whole page, bestie β this one came from Trolltech AS, dated 2 February 2007, and it's all about Qt version 3.3.8. mwah, take care of your help system π β¨
π¦ where this page comes from
- fedora 43: qt3-devel-docs 3.3.8b-102.fc43 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- fedora 44: qt3-devel-docs 3.3.8b-103.fc44 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms