Compatibility Members for QLabel

The following members of class QLabelare part of the Qt compatibility layer. We advise against using them in new code.

Public Functions

void setAlignment(int alignment)
  • 57 public functions inherited from QWidget
  • 8 public functions inherited from QObject
  • 8 public functions inherited from QPaintDevice

Member Function Documentation

void QLabel::setAlignment(int alignment)

Use setAlignment(Qt::Alignment) instead.

If alignment specifies text flags as well, use setTextFormat() to set those.

© 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.