Obsolete Members for QLabel

The following members of class QLabel are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

Public Functions

(obsolete) QLabel(QWidget * parent, const char * name, Qt::WindowFlags f = 0)
(obsolete) QLabel(const QString & text, QWidget * parent, const char * name, Qt::WindowFlags f = 0)
(obsolete) QLabel(QWidget * buddy, const QString & text, QWidget * parent = 0, const char * name = 0, Qt::WindowFlags f = 0)

Member Function Documentation

QLabel::QLabel(QWidget * parent, const char * name, Qt::WindowFlags f = 0)

Constructs an empty label.

The parent, name and widget flag f, arguments are passed to the QFrame constructor.

See also setAlignment(), setFrameStyle(), and setIndent().

QLabel::QLabel(const QString & text, QWidget * parent, const char * name, Qt::WindowFlags f = 0)

Constructs a label that displays the text, text.

The parent, name and widget flag f, arguments are passed to the QFrame constructor.

See also setText(), setAlignment(), setFrameStyle(), and setIndent().

QLabel::QLabel(QWidget * buddy, const QString & text, QWidget * parent = 0, const char * name = 0, Qt::WindowFlags f = 0)

Constructs a label that displays the text text. The label has a buddy widget, buddy.

If the text contains an underlined letter (a letter preceded by an ampersand, &), when the user presses Alt+ the underlined letter, focus is passed to the buddy widget.

The parent, name and widget flag, f, arguments are passed to the QFrame constructor.

See also setText(), setBuddy(), setAlignment(), setFrameStyle(), and setIndent().

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.