PyQt5 createsQLabel()
Description
Creates a label with text.
Syntax
PyQt5.createQLabel(text: str, parent: widget = None) -> QLabel
Parameters
Parameter |
Type |
Default Value |
Mandatory |
Description |
text |
string |
— |
Yes |
The text to display. |
parent |
widget |
null |
❌ No |
The parent widget to which the label belongs. If not specified, the label is created without a parent. |
Return value
Type |
Description |
QLabel |
A new QLabel object. |
Example
let result = PyQt5.createQLabel()
console.info(result)
Last update: 14 August 2025, 18:47