![]() Special subclasses may need this function, but geometry management will usually take care of any necessary rearrangements. void QStatusBar:: reformat()Ĭhanges the status bar's appearance to account for item changes. Shows the temporary message, if appropriate, in response to the paint event. Reimplements: QWidget::paintEvent(QPaintEvent *event). void QStatusBar:: paintEvent( QPaintEvent * event) See also addWidget(), removeWidget(), and addPermanentWidget(). If index is out of range, the widget is appended (in which case it is the actual index of the widget that is returned). Inserts the given widget at the given index to this status bar, reparenting the widget if it isn't already a child of this QStatusBar object. int QStatusBar:: insertWidget( int index, QWidget * widget, int stretch = 0) See also addPermanentWidget(), removeWidget(), and addWidget(). The default stretch factor is 0, i.e giving the widget a minimum of space. The stretch parameter is used to compute a suitable size for the given widget as the status bar grows and shrinks. Inserts the given widget at the given index permanently to this status bar, reparenting the widget if it isn't already a child of this QStatusBar object. int QStatusBar:: insertPermanentWidget( int index, QWidget * widget, int stretch = 0) Used by the showMessage() and clearMessage() functions. void QStatusBar:: hideOrShow()Įnsures that the right widgets are visible. Reimplements: QWidget::event(QEvent *event). Returns the temporary message currently shown, or an empty string if there is no such message. QString QStatusBar:: currentMessage() const See also insertWidget(), removeWidget(), and addPermanentWidget(). The widget is located to the far left of the first permanent widget (see addPermanentWidget()) and may be obscured by temporary messages. void QStatusBar:: addWidget( QWidget * widget, int stretch = 0)Īdds the given widget to this status bar, reparenting the widget if it isn't already a child of this QStatusBar object. See also insertPermanentWidget(), removeWidget(), and addWidget(). It is is located at the far right of the status bar. ![]() Permanently means that the widget may not be obscured by temporary messages. void QStatusBar:: addPermanentWidget( QWidget * widget, int stretch = 0)Īdds the given widget permanently to this status bar, reparenting the widget if it isn't already a child of this QStatusBar object. QStatusBar:: ~QStatusBar()ĭestroys this status bar and frees any allocated resources and child widgets. See also messageChanged(), currentMessage(), and clearMessage(). Note that showMessage() is called to show temporary explanations of tool tip texts, so passing a timeout of 0 is not sufficient to display a permanent message. If timeout is 0 (default), the message remains displayed until the clearMessage() slot is called or until the showMessage() slot is called again to change the message. Hides the normal status indications and displays the given message for the specified number of milli-seconds ( timeout). void QStatusBar:: showMessage(const QString & message, int timeout = 0) See also showMessage() and clearMessage(). The new temporary message is passed in the message parameter which is a null-string when the message has been removed. This signal is emitted whenever the temporary status message changes. void QStatusBar:: messageChanged(const QString & message) See also currentMessage(), showMessage(), and removeWidget(). Removes any temporary message being shown. Member Function Documentation QStatusBar:: QStatusBar( QWidget * parent = nullptr)Ĭonstructs a status bar with a size grip and the given parent.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |