QStatusBar man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



QStatusBar(3qt)					  QStatusBar(3qt)

NAME
       QStatusBar - Horizontal bar suitable for presenting status
       information

       #include <qstatusbar.h>

       Inherits QWidget.

   Public Members
       QStatusBar ( QWidget * parent = 0, const char * name = 0 )
       ~QStatusBar ()
       void addWidget ( QWidget *, int stretch = 0, bool = FALSE
	   )
       void removeWidget ( QWidget * )
       void setSizeGripEnabled ( bool )
       bool isSizeGripEnabled () const

   Public Slots
       void message ( const QString & )
       void message ( const QString &, int )
       void clear ()

   Protected Members
       virtual void paintEvent ( QPaintEvent * )
       void reformat ()
       void hideOrShow ()

   Properties
       l l l l l
       - - - - -
       l l l l l.
       Type Name READ WRITE	Options
       bool sizeGripEnabled	isSizeGripEnabled   setSizeGripEnabled

DESCRIPTION
       The QStatusBar class provides a horizontal bar suitable
       for presenting status information.

       Each status indicator falls into one of three categories:

       Temporary - occupies most of the status bar briefly. Used
       e.g. for explaining tool tip texts or menu entries.

       Normal - occupies part of the status bar and may be hidden
       by temporary messages. Used e.g. for displaying the page
       and line number in a word processor.

       Permanent - is never hidden. Used for important mode
       indications. Some applications put a Caps Lock indicator
       in the status bar.

       QStatusBar lets you display all three types of indicator.

Trolltech AS		   13 June 2001				1

QStatusBar(3qt)					  QStatusBar(3qt)

       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 which displays the message until the next
       clear() or mesage(), and one which also has a time limit:

	    connect( loader, SIGNAL(progressMessage(const QString&)),
		     statusBar(), SLOT(message(const QString&)) );
	    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 then adding it to the status bar with
       addWidget(). Widgets like QLabel, QProgressBar, or even
       QToolButton are useful for adding to status bars.
       removeWidget() is used to remove widgets.

	    statusBar()->addWidget(new MyReadWriteIndication(statusBar()));

       By default, QStatusBar provides a QSizeGrip in the lower-
       right corner. You can disable this with
       setSizeGripEnabled(FALSE);

			    [Image Omitted]

			    [Image Omitted]

       See also QToolBar, QMainWindow, QLabel and GUI Design
       Handbook: Status Bar.

MEMBER FUNCTION DOCUMENTATION
QStatusBar::QStatusBar ( QWidget * parent = 0, const char * name
       = 0 )
       Constructs a status bar with just a size grip.

       See also setSizeGripEnabled().

QStatusBar::~QStatusBar ()
       Destructs the status bar and frees any allocated
       resources.

void QStatusBar::addWidget ( QWidget * widget, int stretch = 0,
       bool permanent = FALSE )
       Adds widget to this status bar.

       widget is permanently visible if permanent is TRUE, and is
       obscured by temporary messages if permanent is FALSE. The
       default is FALSE.

       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.

Trolltech AS		   13 June 2001				2

QStatusBar(3qt)					  QStatusBar(3qt)

       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.

       This function may cause some flicker.

       See also removeWidget().

void QStatusBar::clear () [slot]
       Removes any temporary message being shown.

       See also message().

bool QStatusBar::event ( QEvent * e ) [virtual protected]
       Reimplemented for internal reasons; the API is not
       affected.

       Reimplemented from QObject.

void QStatusBar::hideOrShow () [protected]
       Ensures that the right widgets are visible. Used by
       message() and clear().

bool QStatusBar::isSizeGripEnabled () const
       Returns whether the QSizeGrip in the bottom right of the
       status bar is enabled.

       See also setSizeGripEnabled().

void QStatusBar::message ( const QString & message ) [slot]
       Hide the normal status indicators and display message,
       until clear() or another message() is called.

       See also clear().

void QStatusBar::message ( const QString & message, int ms )
       [slot]
       Hide the normal status indications and display message for
       ms milli-seconds, or until clear() or another message() is
       called, whichever is first.

void QStatusBar::paintEvent ( QPaintEvent * ) [virtual protected]
       Shows the temporary message, if appropriate.

       Reimplemented from QWidget.

void QStatusBar::reformat () [protected]
       Changes the status bar's appearance to account for item
       changes. Special subclasses may need this, but normally
       geometry management will take care of any necessary
       rearrangements.

Trolltech AS		   13 June 2001				3

QStatusBar(3qt)					  QStatusBar(3qt)

void QStatusBar::removeWidget ( QWidget * widget )
       Removes widget from the status bar.

       This function may cause some flicker.

       Note that widget is not deleted.

       See also addWidget().

void QStatusBar::resizeEvent ( QResizeEvent * e ) [virtual
       protected]
       Reimplemented for internal reasons; the API is not
       affected.

       Reimplemented from QWidget.

void QStatusBar::setSizeGripEnabled ( bool enabled )
       Enables or disables the QSizeGrip in the bottom right of
       the status bar. By default, the size grip is enabled.

       See also	 isSizeGripEnabled().

SEE ALSO
       http://doc.trolltech.com/qstatusbar.html
       http://www.trolltech.com/faq/tech.html

COPYRIGHT
       Copyright 1992-2001 Trolltech AS,
       http://www.trolltech.com.  See the license file included
       in the distribution for a complete license statement.

AUTHOR
       Generated automatically from the source code.

BUGS
       If you find a bug in Qt, please report it as described in
       http://doc.trolltech.com/bughowto.html.	Good bug reports
       make our job much simpler. Thank you.

       In case of content or formattting problems with this
       manual page, please report them to qt-bugs@trolltech.com.
       Please include the name of the manual page
       (qstatusbar.3qt) and the Qt version (2.3.1).

Trolltech AS		   13 June 2001				4

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net