Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions |
The TQStatusBar class provides a horizontal bar suitable for presenting status information. More...
#include <ntqstatusbar.h>
Inherits TQWidget.
Each status indicator falls into one of three categories:
TQStatusBar lets you display all three types of indicators.
To display a temporary message, call message() (perhaps by connecting a suitable signal to it). To remove a temporary message, call clear(). There are two variants of message(): one that displays the message until the next clear() or message() and one that has a time limit:
connect( loader, SIGNAL(progressMessage(const TQString&)), statusBar(), SLOT(message(const TQString&)) ); statusBar()->message("Loading..."); // Initial message loader.loadStuff(); // Emits progress messages statusBar()->message("Done.", 2000); // Final message for 2 seconds
Normal and Permanent messages are displayed by creating a small widget and then adding it to the status bar with addWidget(). Widgets like TQLabel, TQProgressBar or even TQToolButton are useful for adding to status bars. removeWidget() is used to remove widgets.
statusBar()->addWidget(new MyReadWriteIndication(statusBar()));
By default TQStatusBar provides a TQSizeGrip in the lower-right corner. You can disable it with setSizeGripEnabled(FALSE);
See also TQToolBar, TQMainWindow, TQLabel, GUI Design Handbook: Status Bar, Main Window and Related Classes, and Help System.
See also sizeGripEnabled.
widget is permanently visible if permanent is TRUE and may be obscured by temporary messages if permanent is FALSE. The default is FALSE.
If permanent is TRUE, widget is located at the far right of the status bar. If permanent is FALSE (the default), widget is located just to the left of the first permanent widget.
stretch is used to compute a suitable size for widget as the status bar grows and shrinks. The default of 0 uses a minimum of space.
This function may cause some flicker.
See also removeWidget().
See also message().
Returns TRUE if the TQSizeGrip in the bottom right of the status bar is enabled; otherwise returns FALSE. See the "sizeGripEnabled" property for details.
See also clear().
Example: regexptester/regexptester.cpp.
Hides the normal status indications and displays message for ms milli-seconds or until clear() or another message() is called, whichever occurs first.
This signal is emitted when the temporary status messages changes. message is the new temporary message, and is a null-string when the message has been removed.
See also message() and clear().
Reimplemented from TQWidget.
This function may cause some flicker.
Note that widget is not deleted.
See also addWidget().
Sets whether the TQSizeGrip in the bottom right of the status bar is enabled. See the "sizeGripEnabled" property for details.
This property holds whether the TQSizeGrip in the bottom right of the status bar is enabled.
Enables or disables the TQSizeGrip in the bottom right of the status bar. By default, the size grip is enabled.
Set this property's value with setSizeGripEnabled() and get this property's value with isSizeGripEnabled().
This file is part of the TQt toolkit. Copyright © 1995-2007 Trolltech. All Rights Reserved.
Copyright © 2007 Trolltech | Trademarks | TQt 3.3.8
|