Q3WhatsThis Class Reference
|
Q3WhatsThis ( QWidget * widget ) | |
~Q3WhatsThis () | |
virtual bool | clicked ( const QString & href ) |
virtual QString | text ( const QPoint & pos ) |
void | add ( QWidget * widget, const QString & text ) |
void | display ( const QString & text, const QPoint & pos = QCursor::pos(), QWidget * widget = 0 ) |
void | enterWhatsThisMode () |
bool | inWhatsThisMode () |
void | leaveWhatsThisMode ( const QString & text = QString(), const QPoint & pos = QCursor::pos(), QWidget * widget = 0 ) |
void | remove ( QWidget * widget ) |
QToolButton * | whatsThisButton ( QWidget * parent ) |
Constructs a new "What's This?" object for widget.
Destroys the "What's This?" object.
Adds text as "What's This?" help for widget. If the text is rich text formatted (i.e. it contains markup) it will be rendered with the default stylesheet QStyleSheet::defaultSheet().
The text is destroyed if the widget is later destroyed, so it need not be explicitly removed.
See also remove().
This virtual function is called when the user clicks inside the "What's this?" window. href is the link the user clicked on, or an empty string if there was no link.
If the function returns true (the default), the "What's this?" window is closed, otherwise it remains visible.
The default implementation ignores href and returns true.
Display text in a help window at the global screen position pos.
If widget widget is not 0 and has its own dedicated QWhatsThis object, this object will receive clicked() messages when the user clicks on hyperlinks inside the help text.
See also clicked().
Enters "What's This?" mode and returns immediately.
Qt will install a special cursor and take over mouse input until the user clicks somewhere. It then shows any help available and ends "What's This?" mode. Finally, Qt removes the special cursor and help window and then restores ordinary event processing, at which point the left mouse button is no longer pressed.
The user can also use the Esc key to leave "What's This?" mode.
See also inWhatsThisMode() and leaveWhatsThisMode().
Returns true if the application is in "What's This?" mode; otherwise returns false.
See also enterWhatsThisMode() and leaveWhatsThisMode().
This function is used internally by widgets that support QWidget::customWhatsThis(); applications do not usually call it. An example of such a widget is Q3PopupMenu: menus still work normally in "What's This?" mode but also provide help texts for individual menu items.
If text is not empty, a "What's This?" help window is displayed at the global screen position pos. If widget widget is not 0 and has its own dedicated QWhatsThis object, this object will receive clicked() messages when the user clicks on hyperlinks inside the help text.
See also inWhatsThisMode(), enterWhatsThisMode(), and clicked().
Removes the "What's This?" help associated with the widget. This happens automatically if the widget is destroyed.
See also add().
This virtual function returns the text for position pos in the widget that this "What's This?" object documents. If there is no "What's This?" text for the position, an empty string is returned.
The default implementation returns an empty string.
Creates a QToolButton preconfigured to enter "What's This?" mode when clicked. You will often use this with a tool bar as parent:
(void)Q3WhatsThis::whatsThisButton( my_help_tool_bar );
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt 4.6-snapshot | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com